标签:docker ubunt date lis 目录 connect update get uil
答: 在Dockerfile中添加以下语句来配置apt-get
$ cp /etc/apt/sources.list ./
$ cp /etc/apt.conf ./
$ cat Dockerfile
COPY sources.list /etc/apt/sources.list
COPY apt.conf /etc/apt/apt.conf
在docker build过程中执行apt-get update时报错"Could not connect to archive.ubuntu.com:80"如何处理?
标签:docker ubunt date lis 目录 connect update get uil
原文地址:https://www.cnblogs.com/dakewei/p/13212920.html