Domestic mirror warehouse

Since the default image warehouse of docker is a foreign server, the speed of each pull image is extremely slow, and there will be problems with the Great Wall from time to time, which cannot be downloaded directly. It can be accelerated through the official domestic image of docker, and domestic docker players can quickly pull the image, which can be configured in the following three ways:

1. Specify the mirror warehouse directly in the command:

docker pull registry.docker-cn.com/myname/imageName:tag

2. Configure the docker daemon process:

docker --registry-mirror=https://registry.docker-cn.com daemon

3. Add the following to /etc/docker/daemon.json:

{
  "registry-mirror": "https://registry.docker-cn.com"
}
After saving, restart the docker service to take effect.
 
 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324768202&siteId=291194637
Recommended