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
网友评论