RUN sed -i "s/archive.ubuntu./mirrors.aliyun./g" /etc/apt/sources.list 
RUN sed -i "s/deb.debian.org/mirrors.aliyun.com/g" /etc/apt/sources.list 
RUN sed -i "s/security.debian.org/mirrors.aliyun.com\/debian-security/g" /etc/apt/sources.list

 

把相应的源替换成阿里云的镜像。

 

 

RUN sed -i "s/archive.ubuntu./mirrors.ustc.edu.cn/g" /etc/apt/sources.list 
RUN sed -i "s/deb.debian.org/mirrors.ustc.edu.cn/g" /etc/apt/sources.list 
RUN sed -i "s/security.debian.org/mirrors.ustc.edu.cn\/debian-security/g" /etc/apt/sources.list

 

也可以考虑替换成中国科学大学对应的镜像

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐