提高拉取镜像的速度使用国内的Docker镜像仓库
网易:http://hub-mirror.c.163.com
中科大镜像地址:http://mirrors.ustc.edu.cn/
中科大github地址:https://github.com/ustclug/mirrorrequest
Azure中国镜像地址:http://mirror.azure.cn/
Azure中国github地址:https://github.com/Azure/container-service-for-azure-china
DockerHub镜像仓库: https://hub.docker.com/
阿里云镜像仓库: https://cr.console.aliyun.com
google镜像仓库: https://console.cloud.google.com/gcr/images/google-containers/GLOBAL
coreos镜像仓库: https://quay.io/repository/
RedHat镜像仓库: https://access.redhat.com/containers
修改或创建Docker的配置文件daemon.json(通常位于/etc/docker/),添加国内镜像仓库的地址作为Registry Mirrors
{
"registry-mirrors": ["https://镜像仓库地址"]
}
重启Docker服务以应用配置。
sudo systemctl restart docker