Docker镜像上传到私有仓库

查看需要上传的镜像...复制镜像名

(1)标记此镜像为私有仓库的镜像

docker tag  mybatis/springboothelloworld 192.168.25.136:5000/springboothelloworld

(2)再次启动私服容器

docker start registry

(3)上传标记的镜像

docker push 192.168.25.136:5000/springboothelloworld,下面是上传中的画面

不过我个人建议的话,上传镜像用dockermaven 插件会方便很多,我也在写关于dockermaven的帖,有兴趣的可以研究一下

猜你喜欢

转载自blog.csdn.net/qq_40794266/article/details/83817629