docker (finishing

Note that, when you have installed docker, and not with any mirror, so you need to download, the default download address is the docker's official website, and their official website in the country has no nodes from time to time on the isolated country firewall, will DNS resolution not appear, or mirroring the idea prompted to find, so if you have these tips, and you do not be surprised.

There are three solutions:

The first is to keep trying, because the wall is not completely isolated, occasionally there may be a time, although time-consuming, but I personally still recommend, after all, the official website mirroring relatively pure simplicity.

Second, add accelerator, now do docker domestic company or with a lot, so in order to give users and their own convenience, engage the accelerator, which are: Ali cloud, cloud peacock, DaoCloud other installation methods not listed, you can own to search the internet-related, personal recommendations with DaoCloud, because the method is relatively simple.

Third, replace the download, although the default is downloaded from the official website, but does not mean that can not change, but the country mirror sites, there are many, can be considered, but the safety and purity of a matter of opinion, I personally was not recommended, because I have not used, the method is not to say, here are a few.

#阿里云
docker pull registry.cn-hangzhou.aliyuncs.com/acs-sample/redis-sameersbn
#时速云
docker pull index.tenxcloud.com/tenxcloud/ubuntu
#网易蜂巢
docker pull hub.c.163.com/xbingo/jdk8:latest
 

Said so much, how download the image? In fact, we are talking about the first command is that you can automatically download the image and create a container.

docker run --rm -ti centos:latest /bin/bash
 

Just download the image, create a container that is not

docker pull centos:latest
 

The above two commands will first find the current image library is not related names mirror, not, go download the image related to the image name.

Find what image to use the following command, he cited a docker mirror name names all related content, including official, also includes community uploaded by other users, in general, will indicate what image contains the software and features, then himself choose to download on demand, there is also strong local docker

docker search centos

Guess you like

Origin www.cnblogs.com/linuxws/p/12045388.html