Docker国内镜像源的切换


Docker中国区官方镜像:

https://registry.docker-cn.com

网易:

http://hub-mirror.c.163.com

中国科技大学:

https://docker.mirrors.ustc.edu.cn

阿里云:

https://cr.console.aliyun.com/

我们都把它们导入为镜像源:

[root@localhost]# vim /etc/docker/daemon.json  # 创建或修改 /etc/docker/daemon.json 文件,修改为如下形式
{
    "registry-mirrors" : [
    "https://registry.docker-cn.com",
    "https://docker.mirrors.ustc.edu.cn",
    "http://hub-mirror.c.163.com",
    "https://cr.console.aliyun.com/"
  ]
}

 

然后要重启Docker服务:

[root@localhost]# systemctl daemon-reload
[root@localhost]# systemctl restart docker

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM