设置docker镜像加速地址

阅读 64

2022-04-16

设置docker镜像加速地址

文章目录

设置镜像加速地址

1、 docker国内镜像主要有:

    docker中国区官方镜像  https://registry.docker-cn.com //不需要注册直接使用
    网易  http://hub-mirror.c.163.com //不需要注册直接使用
    阿里镜像  https://xxxx.mirror.aliyuncs.com  //需要注册
    DaoCloud  http://xxxx.m.daocloud.ip  //需要注册

2、登录阿里云控制台(推荐)

https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors

自己的阿里云镜像加速器地址

3、设置自己的镜像加速地址

sudo tee /etc/docker/daemon.json <<-'EOF'
#写入地址
{
  "registry-mirrors": ["https://你的镜像地址"]
}

EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

精彩评论(0)

0 0 举报