参考: https://github.com/DaoCloud/public-image-mirror
使用DaoCloud加速:
比如我想在dockerhub下载这个镜像:
本来的命令是:
docker pull openjdk:11.0-jdk-slim-buster
在要拉取的镜像前,添加前缀:m.daocloud.io/docker.io/library
[root@nginx-node1 ~]# docker pull m.daocloud.io/docker.io/library/openjdk:11.0-jdk-slim
11.0-jdk-slim: Pulling from openjdk
a9fe95647e78: Already exists
4015b6e8cc8d: Already exists
fd343789f78f: Pull complete
f361af981f24: Pull complete
Digest: sha256:868a4f2151d38ba6a09870cec584346a5edc8e9b71fde275eb2e0625273e2fd8
Status: Downloaded newer image for m.daocloud.io/docker.io/library/openjdk:11.0-jdk-slim