docker快速拉取镜像

快速拉取镜像的地址

vim /etc/docker/daemon.json

修改文件为以下内容

{
        "registry-mirrors":["https://hub.c.163.com"],                 #镜像加速地址
     "insecure-registries":["192.168.1.21:5000","172.16.213.39:5000"]    #本地镜像仓库地址,可以配置多个,用英文逗号分隔 }

重启使生效:

systemctl daemon-reload
systemctl restart docker

猜你喜欢

转载自www.cnblogs.com/longchengruoxi/p/12124582.html