[Docker02]Docker_registry

部署Docker仓库

Docker registry

#检查端口5000是否被占用
netstat -tunlp | grep 5000
# the local host ip is 172.17.0.1
# pull registry
mkdir -p /opt/myregistry
docker run -d -p 5000:5000 --name registry --restart=always -v /opt/myregistry:/var/lib/registry registry:2.4.1
# double check the registry is ok.
curl http://172.17.0.1:5000/v2
# modify https to http
echo "{"insecure-registries:["172.17.0.1:5000"]"}"
docker pull busybox
docker tag busybox 172.17.0.1:5000/busybox01
docker rmi busybox
docker push 172.17.0.1:5000/busybox01
docker rmi 172.17.0.1:5000/busybox01
docker pull 172.17.0.1:5000/busybox01

the detail of how to deploy docker registry

Docker hub

harbor

posted @ 2017-11-26 21:39  云原生生态圈  阅读(181)  评论(0编辑  收藏  举报