当前位置: 代码迷 >> GIS >> 使用Docker registry镜像创设私有仓库
  详细解决方案

使用Docker registry镜像创设私有仓库

热度:309   发布时间:2016-05-05 06:07:34.0
使用Docker registry镜像创建私有仓库

#文件存储在/root/my_registry

docker run -d -p 5000:5000 -v /root/my_registry:/tmp/registry --name?registry?registry

docker pull nginx

docker tag?nginx?172.16.41.200:5000/nginx

docker push?172.16.41.200:5000/nginx

?

docker rmi?172.16.41.200:5000/nginx

docker pull?172.16.41.200:5000/nginx

?

关于https的问题

#测试机器centos6.5 IP:172.16.41.200

/etc/sysconfig/docker文件other_args="--insecure-registry 172.16.41.200:5000"

?

?

?参考:

http://blog.csdn.net/delphiwcdj/article/details/43099877

http://my.oschina.net/u/1458864/blog/369057

  相关解决方案