docker official mirror warehouse address: https://hub.docker.com/search?q=&type=image
Because it is a foreign address, the download speed is very slow mirroring.
We need to configure a mirror to accelerate domestic,
You can use domestic mirroring what?
Docker can be configured to have a lot of domestic mirror to choose from, such as: Ali cloud, Netease hive, DaoCloud, Docker China, the official mirroring, which are to be provided to the good image we randomly selected warehouse.
Here we choose a mirror image of Ali cloud acceleration:
Log: https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors
Click "Mirror Center" - "" Mirror accelerator "
The method according to the configuration, the configuration is complete.
The results of the test configuration:
1. Introduction busybox
we can test from the warehouse got me a mirror image of a mirror image address is successfully configured, for example, we can try to pull a simple busybox mirror to make the appropriate test.
busybox is an integrated more than one hundred of the most commonly used commands and tools linux software, but it is also a minimal Linux system, which provides the main functionality of the system, such as grep, find, mount, and telnet, etc. but does not include some of GNU-related features and options.
2. pulling busybox
execute the instructions as follows:
docker pull busybox
When you see the following information described image has been successfully pulled
Using default tag: latest
Trying to pull repository docker.io/library/busybox …
latest: Pulling from docker.io/library/busybox
9e87eff13613: Pull complete
Digest: sha256:2605a2c4875ce5eb27a9f7403263190cd1af31e48a2044d400320548356251c4
3. Test busybox
test the pulled mirror busybox
[root@localhost ~]# docker run busybox echo “hello world”
hello world
When we see the console print out "hello world", which indicates that we have busybox test was successful.