registry使用前必备:
必须安装Docker引擎version 1.6.0
基础命令:
1.启动一个registry容器:
docker run -d -p 5000:5000 --name registry registry:latest
2.从远程仓库拉取镜像:
docker pull ubuntu
3.给镜像打上标签:
docker image tag ubuntu localhost:5000/myfirstimage
4.推送镜像到私有仓库:
docker push localhost:5000/myfirstimage
5.从私有仓库拉取镜像:
docker pull localhost:5000/myfirstimage
6.停止私有仓库容器,清除仓库数据;
docker container stop registry && docker container rm -v registry
标签:5000,仓库,私有,registry,镜像,docker
From: https://www.cnblogs.com/lciaut/p/16986715.html