2. Configure the docker image source of alicloud

Time:2019-10-20

Warehouse image can be understood as a good environment for others to help you make. So you can use it directly.

Docker image warehouse address:

https://hub.docker.com

Because there are walls, we configure domestic images. We use Alibaba cloud’s image address.

https://dev.aliyun.com/search…

//Configure and use alicloud image accelerator
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://md4nbj2f.mirror.aliyuncs.com"]
}
EOF

//Reload profile
sudo systemctl daemon-reload   

//Restart docker  
sudo systemctl restart docker

Article link: http://www.mi360.cn/articles/7