docker修改镜像源

1.直接设置 –registry-mirror 参数,仅对当前的命令有效
docker run hello-world --registry-mirror=https://docker.mirrors.ustc.edu.cn

2.主要几个过来镜像源


Docker 官方中国区: https://registry.docker-cn.com

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

中科大: https://docker.mirrors.ustc.edu.cn

 

添加yum源

yum-config-manager --add-repo=https://docker.mirrors.ustc.edu.cn

 

posted @ 2020-05-07 11:07  porterCD  阅读(285)  评论(0)    收藏  举报