配置docker加速器

2018-03-28  本文已影响0人  leo_xl

vim /etc/docker/daemon.json

阿里云添加配置

sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{ "registry-mirrors": ["https://41valwf5.mirror.aliyuncs.com"] }
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

腾讯云添加配置

{
"registry-mirrors": ["https://mirror.ccs.tencentyun.com"]
}

执行生效命令

systemctl daemon-reload

systemctl restart docker

上一篇 下一篇

猜你喜欢

热点阅读