1. After logging in, click the operation document below, select the operating system you use, and modify the configuration file according to its requirements
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://oksyez0b.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
Modify the configuration file:
Reload configuration file, restart docker
sudo systemctl daemon-reload
sudo systemctl restart docker
PS: For other mirror sites, you can directly operate the "/etc/docker/daemon.json" file, and just add the information in the list directly.