docker configuration aliyun under centos7

  1. Go to dev.aliyun.com to create an account
    Insert picture description here

sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["阿里云会给一个属于你的加速地址"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

You can directly copy and run these commands
3. You can find a Registry Mirrors through docker info to see if the configuration of Alibaba Cloud is configured

Published 37 original articles · praised 6 · visits 4665

Guess you like

Origin blog.csdn.net/littlewhitevg/article/details/97898198