您可以通过修改daemon配置文件/etc/docker/daemon.json来使用加速器:
1
sudo mkdir -p /etc/docker
2
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://xxxxx.mirror.aliyuncs.com"]
}
EOF
3
sudo systemctl daemon-reload
4
sudo systemctl restart docker
网友评论