docker本地仓库

DOCKER 本地仓库

环境:1:docker仓库     192.168.159.139

           2:docker验证机   192.168.159.141

下载registry

 运行registry

 验证:

 如要希望docker客户端支持http协议,需在启动docker时加入参数 --insecureregistry your_registry_ip:port 编辑/usr/lib/systemd/system/docker.service文件 增加--insecure-registry参数

 

[root@localhost ~]# systemctl daemon-reload 

[root@localhost ~]# systemctl restart docker

上传镜像

先给要上传 的镜像打标签

 接下来上传镜像

 上传成功

接下来到到另外一台docker验证机上操作

 验证机也要增加--insecure-registry参数

 可以看出下载镜像成功了

 

原文地址:https://www.cnblogs.com/cy888888/p/13039365.html