文章目录
由于Docker官方镜像仓库网速较差,我们需要设置国内镜像:
参考阿里云的镜像加速文档:
https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors
不要全部CV,有可能会失效的!建议分开复制粘贴。
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://oqb3f19p.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker