方法如下:
编辑/etc/docker/daemon.json
# vim /etc/docker/daemon.json 1
修改为:
{"insecure-registries":["master.example.com:5000","172.30.0.0/16"]}1
重启docker
# systemctl restart docker 1
这样,docker就可以向这两个本地镜像仓库push或pull镜像了。
方法如下:
编辑/etc/docker/daemon.json
# vim /etc/docker/daemon.json 1
修改为:
{"insecure-registries":["master.example.com:5000","172.30.0.0/16"]}1
重启docker
# systemctl restart docker 1
这样,docker就可以向这两个本地镜像仓库push或pull镜像了。