将镜像上传到Docker Hub中央仓库中
首先创建一个镜像,点击:创建一个简单的Docker镜像
1.先注册帐号 https://hub.docker.com/
2.将镜象推上去
[root@localhost docker]# docker login [root@localhost docker]# docker tag hello-k8s:0.0.1 vipsoft/hello-k8s:0.0.1 [root@localhost docker]# docker push vipsoft/hello-k8s:0.0.1
3.删除之前存在的镜像
4. 拉取 镜像
本文来自博客园,作者:VipSoft 转载请注明原文链接:https://www.cnblogs.com/vipsoft/p/12587233.html