docker更换镜像源

1、docker的官方镜像源下载镜像速度比较慢,可以更换为国内的一些镜像源

#修改或者创建/etc/docker/daemon.json文件
{
  "registry-mirrors":["https://cr.console.aliyun.com","http://hub-mirror.c.163.com"]      
}

2、修改完成后重新启动

systemctl daemon-reload
systemctl restart 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

posted @ 2024-07-11 15:35  李延申  阅读(4158)  评论(0)    收藏  举报