1、创建一个sources.list文件和dockerfile放在同一个目录下。
2、apt-get update 之前加入 ADD sources.list /etc/apt/
3、执行镜像创建
docker build -t nginx:ghl.002 -f nginx_add .
1、创建一个sources.list文件和dockerfile放在同一个目录下。
2、apt-get update 之前加入 ADD sources.list /etc/apt/
3、执行镜像创建
docker build -t nginx:ghl.002 -f nginx_add .