docker-compose up -d nginx 报错
在阿里云ECS上创建nginx容器时,报错如上图。
The solution:
In your Dockerfile, before running any apt commands, add the following line:
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 working
posted on 2019-05-28 15:44 Karlkiller 阅读(1052) 评论(0) 编辑 收藏 举报
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步