How to install Docker on centos7.x
Can go to visit the website: docs.docker.com/install/lin…
- Open yourself in Ali cloud mirror service
- Follow the above configuration step by step
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://XXXX.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
Copy the code
- Finally, verify whether the configuration is successful
Docker info // Displays docker system information, including the number of images and containersCopy the code
The configuration is successful