Docker 私有仓库搭建

1.https问题解决
vim /etc/docker/daemon.json
{"insecure-registries":["118.184.66.215:5000"]}
2.重启docker
3.启动仓库
docker pull registry
docker run -d -p 5000:5000 -v /opt/data/registry:/tmp/registry registry
3.上传镜像
docker pull hub.c.163.com/library/nginx:latest
docker tag hub.c.163.com/library/nginx 118.184.66.215:5000/nginx
docker push 118.184.66.215:5000/nginx
4.访问私有仓库
posted @ 2018-01-09 10:36  陶海军  阅读(100)  评论(0编辑  收藏  举报