标签:json ons 登录 registry 阿里 pre com systemctl https
首先访问 登录阿里云 https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors,会获取专属的镜像地址
centos用户执行下列操作即可
sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-‘EOF‘ { "registry-mirrors": ["自己的镜像地址"] } EOF sudo systemctl daemon-reload sudo systemctl restart docker
标签:json ons 登录 registry 阿里 pre com systemctl https
原文地址:https://www.cnblogs.com/codeBang/p/11904924.html