docker 建立私有镜像仓库


mkdir -p /registry/public/repos

docker run --name register -p 5000:5000 -v /registry/public/repos:/var/lib/registry -d registry

 开放端口


firewall-cmd --zone=public --add-port=5000/tcp --permanent 

firewall-cmd --reload

firewall-cmd --zone=public --list-ports

仓库查看

http://192.168.3.200:5000/v2/_catalog

push


docker push 192.168.3.200:5000/swarm

pull

docker pull 192.168.3.200:5000/swarm

猜你喜欢

转载自blog.csdn.net/kq1983/article/details/83118987