docker-compose up -d nginx 報錯

在阿里雲ECS上建立nginx容器時,報錯如上圖。nginx

 

The solution:fetch

In your Dockerfile, before running any apt commands, add the following line:this

RUN printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list

This enables apt to run from the new sources.阿里雲

It's possible the debian:jesse Docker image will be updated to work correctly in the near future, but until then this will allow you to keep workingspa

 

 

參考連接:https://superuser.com/questions/1423486/issue-with-fetching-http-deb-debian-org-debian-dists-jessie-updates-inreleasecode

相關文章
相關標籤/搜索