docker私有镜像仓库registry基础管理命令系列一
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

浙公网安备 33010602011771号