Docker Debian切换国内源

docker pull nginx:1.15.12

cat /etc/issue
Debian GNU/Linux 9 \n \l

mv /etc/apt/sources.list /etc/apt/sources.list.bak && \
    echo "deb http://mirrors.163.com/debian/ jessie main non-free contrib" >/etc/apt/sources.list && \
    echo "deb http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list && \
    echo "deb-src http://mirrors.163.com/debian/ jessie main non-free contrib" >>/etc/apt/sources.list && \
    echo "deb-src http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list
	
apt-get update
apt-get install -y vim

参考:https://developer.aliyun.com/mirror/debian?spm=a2c6h.13651102.0.0.3e221b11dlaQVG  

https://mirrors.tuna.tsinghua.edu.cn/help/debian/

posted @ 2020-11-06 18:39  BINGJJFLY  阅读(1849)  评论(0编辑  收藏  举报