Docker-apt获取安装失败
我有一个非常简单的docker compose/docker sync脚本: docker-compose-dev.yml docker-compose.yml Dockerfile docker-sync.yml 启动此安装程序时,运行apt get install时出现以下错误:Docker-apt获取安装失败,docker,docker-compose,dockerfile,Docker,Docker Compose,Dockerfile,我有一个非常简单的docker compose/docker sync脚本: docker-compose-dev.yml docker-compose.yml Dockerfile docker-sync.yml 启动此安装程序时,运行apt get install时出现以下错误: Building apache Step 1/3 : FROM bylexus/apache-php7 ---> 97d3e723b95a Step 2/3 : RUN apt-get update &am
Building apache
Step 1/3 : FROM bylexus/apache-php7
---> 97d3e723b95a
Step 2/3 : RUN apt-get update && apt-get install -y curl vim
---> Running in ae4aa07c3b4f
Ign:1 http://security.ubuntu.com/ubuntu yakkety-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu yakkety InRelease
Err:3 http://security.ubuntu.com/ubuntu yakkety-security Release
404 Not Found [IP: 91.189.88.161 80]
Ign:4 http://archive.ubuntu.com/ubuntu yakkety-updates InRelease
Ign:5 http://archive.ubuntu.com/ubuntu yakkety-backports InRelease
Err:6 http://archive.ubuntu.com/ubuntu yakkety Release
404 Not Found [IP: 91.189.88.152 80]
Err:7 http://archive.ubuntu.com/ubuntu yakkety-updates Release
404 Not Found [IP: 91.189.88.152 80]
Err:8 http://archive.ubuntu.com/ubuntu yakkety-backports Release
404 Not Found [IP: 91.189.88.152 80]
Reading package lists...
E: The repository 'http://security.ubuntu.com/ubuntu yakkety-security Release' does no longer have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu yakkety Release' does no longer have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu yakkety-updates Release' does no longer have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu yakkety-backports Release' does no longer have a Release file.
Service 'apache' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y curl vim' returned a non-zero code: 100
EXCEPTION: #<Docker::Compose::Error: 'up' failed with status 'pid 40288 exit 1': Step 1/3 : FROM bylexus/apache-php7>
MESSAGE: 'up' failed with status 'pid 40288 exit 1': Step 1/3 : FROM bylexus/apache-php7
有人知道这里发生了什么,我如何解决它吗?你指的是一个不受支持/不再受支持的Ubuntu版本。使用其中一个 16.04 LTS版本,或 17.10当前版本
由于16.10和17.04在后一种情况下有些令人恼火,因此已关闭。FWIW我倾向于每六个月在少数几台机器上升级一次,这通常运行得很顺利。这意味着docker映像中使用的ubuntu映像已经过时了?但是我不能使用这个图像,需要自己创建一个新的吗?很难为docker找到合适的php7 apache映像。我觉得这很奇怪,因为图片上说它使用的是LTS版本。
version: '2'
services:
apache:
build: .
ports:
- 80:80
db:
image: orchardup/mysql
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: jettsw53
FROM bylexus/apache-php7
RUN apt-get update && \
apt-get install -y \
curl \
vim
CMD ["/usr/local/bin/run"]
version: "2"
options:
verbose: true
syncs:
jettsw53-sync: # tip: add -sync and you keep consistent names as a convention
src: './src'
sync_excludes: ['.git', 'var/cache/*']
Building apache
Step 1/3 : FROM bylexus/apache-php7
---> 97d3e723b95a
Step 2/3 : RUN apt-get update && apt-get install -y curl vim
---> Running in ae4aa07c3b4f
Ign:1 http://security.ubuntu.com/ubuntu yakkety-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu yakkety InRelease
Err:3 http://security.ubuntu.com/ubuntu yakkety-security Release
404 Not Found [IP: 91.189.88.161 80]
Ign:4 http://archive.ubuntu.com/ubuntu yakkety-updates InRelease
Ign:5 http://archive.ubuntu.com/ubuntu yakkety-backports InRelease
Err:6 http://archive.ubuntu.com/ubuntu yakkety Release
404 Not Found [IP: 91.189.88.152 80]
Err:7 http://archive.ubuntu.com/ubuntu yakkety-updates Release
404 Not Found [IP: 91.189.88.152 80]
Err:8 http://archive.ubuntu.com/ubuntu yakkety-backports Release
404 Not Found [IP: 91.189.88.152 80]
Reading package lists...
E: The repository 'http://security.ubuntu.com/ubuntu yakkety-security Release' does no longer have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu yakkety Release' does no longer have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu yakkety-updates Release' does no longer have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu yakkety-backports Release' does no longer have a Release file.
Service 'apache' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y curl vim' returned a non-zero code: 100
EXCEPTION: #<Docker::Compose::Error: 'up' failed with status 'pid 40288 exit 1': Step 1/3 : FROM bylexus/apache-php7>
MESSAGE: 'up' failed with status 'pid 40288 exit 1': Step 1/3 : FROM bylexus/apache-php7