- docker ubuntu 修改ubuntu镜像源
没有vim 可尝试如下方法
sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
sed -i s@/security.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
apt-get clean
apt-get update
本地文件上传到ubuntu指定的目录
docker cp local_path containerID:container_path
# containerID通过 cat /etc/hosts查询