Docker镜像的复制和重载
Docker镜像的复制和重载1、在源docker仓库上把镜像打包
# docker save docker-registry.istarshine.net.cn:5000/xgsj3/alpha/frontend:V3.0.171>frontend:V3.0.171.tar
远程复制frontend:V3.0.171.tar到新的docker镜像仓库主机
2、在新的docker镜像仓库主机重载镜像
#docker load -i frontend:V3.0.176.tar
3、在新的docker镜像仓库主机给镜像打新标签
#docker tag docker-registry.istarshine.net.cn:5000/xgsj3/alpha/frontend:V3.0.176 tjregistry:5000/frontend:V3.0.176
4、把打了新标签的镜像推到本地仓库
#docker push tjregistry:5000/frontend:V3.0.176
5、查看
#docker images
http://i2.运维网.com/images/blog/201805/29/90c2b571f64ceaad5508c22ecd1a936b.png
页:
[1]