一、国内加速地址

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

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

3.ustchttps://docker.mirrors.ustc.edu.cn

4.中国科技大学https://docker.mirrors.ustc.edu.cn

5.阿里云容器 生成自己的加速地址

登录:cr.console.aliyun.com

点击“创建我的容器镜像”,得到专属加速地址。

二、修改方法

创建或修改 /etc/docker/daemon.json 文件,修改为如下形式

{

"registry-mirrors": [

"https://registry.hub.docker.com",

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

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

"https://registry.docker-cn.com"

]

}

加载重启docker

systemctl restart docker

查看是否成功

docker info

三、从指定repo拉取镜像

命令格式: library/

$ docker pull busybox

# 等价于:

$ docker pull docker.io/library/busybox:latest

$ docker pull registry.hub.docker.com/library/busybox:latest

推荐阅读

评论可见,请评论后查看内容,谢谢!!!
 您阅读本篇文章共花了: