1.配置加速器
vim /etc/docker/daemon.json
{"registry-mirrors": ["https://docker.registry.cyou"]
}
2.实测结果:
[root@localhost ~]# docker pull mysql
Using default tag: latest
latest: Pulling from library/mysql
......
Digest: sha256:9ceea965bd96a49b4299b8515fd92c3dc8ab26f34563795a350aae422985ea91
Status: Downloaded newer image for mysql:latest
docker.io/library/mysql:latest
[root@localhost ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
mysql latest d1a6bffb6c99 4 weeks ago 586MB