docker pull acceleration

docker pull pulls the image from the official warehouse will be very slow, you need to change to a domestic source for acceleration

  • Enter /etc/docker
cd /etc/docker
  • Create a new file named daemon.json (not needed if you have one)
sudo touch daemon.json
  • Grant'write' permission
sudo chmod +w daemon.json
  • Add in the file:
{
    
    
"registry-mirrors": ["https://9cpn8tt6.mirror.aliyuncs.com"]
}

Save and exit

  • Make the configuration file effective
systemctl daemon-reload
  • Restart docker
systemctl restart docker

Guess you like

Origin blog.csdn.net/kkjsk/article/details/112434666