Docker download mirrors the problem is too slow

I installed the linux Docker, docker pull a mirror nginx, damn is too slow spent 1-2 hours to complete the download.

 

Optimization methods found on the Internet, then it took off at speed, in fact, as long as the pull of docker mirrored warehouse configuration on the line, with the same configuration maven repository source as follows:

 

1, into the configuration directory docker in the machine:

  Command: cd / etc / docker

  Daemon.json find the file, if not create a new one:

 

 

2, open daemon.json, content configuration as follows:

{

    "registry-mirrors":["https://almtd3fa.mirror.aliyuncs.com"]      

}

 

 

 

 

3, and then restart docker execute the command:

service docker restart

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/spll/p/11828193.html
Recommended