turnbullpress / dockerbook-code

The code and configuration examples from The Docker Book (http://www.dockerbook.com)
930 stars 581 forks source link

unable to locate package tomcat7 #57

Closed BaskerShu closed 5 years ago

BaskerShu commented 5 years ago

In chapter, when build tomcat7, unable to locate package tomcat7

Step 1/14 : FROM ubuntu:18.04
 ---> 47b19964fb50
Step 2/14 : MAINTAINER 
 ---> Using cache
 ---> 1b8cd62dfcd1
Step 3/14 : ENV freshed_at 2019-03-14
 ---> Using cache
 ---> e9d521c19bbb
Step 4/14 : RUN apt-get -qq update
 ---> Using cache
 ---> 64f89f7b9605
Step 5/14 : RUN apt-get -qq install tomcat7 default-jdk
 ---> Running in 6e473c92c9c5
E: Unable to locate package tomcat7
The command '/bin/sh -c apt-get -qq install tomcat7 default-jdk' returned a non-zero code: 100
BaskerShu commented 5 years ago

when change ubuntu18.04 to ubuntu14.04 ,everything is ok

jamtur01 commented 5 years ago

tomcat7 should be tomcat8 - I suspect you've got an older version of the code. The code in this repo is updated.