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://www.bubuko.com/infodetail-2621991.html