推送docker镜像至Docker Hub
【摘要】
1.在Docker Hub上创建镜像库
首先到到官网注册账号:https://hub.docker.com/ 点击Repositories---->Create 填写镜像的名字即可,在右边可以看到...
1.在Docker Hub上创建镜像库
首先到到官网注册账号:https://hub.docker.com/
点击Repositories---->Create
填写镜像的名字即可,在右边可以看到推送镜像的命令
2.将本地镜像推送到Docker Hub
2.1.登陆Docker Hub
docker login -ujiangxlrepo
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
- 1
- 2
- 3
- 4
- 5
- 6
- 7
2.2.将本地镜像打标签成Docker Hub的仓库路径
docker tag kube-state-metrics:v1.8.0 jiangxlrepo/kube-state-metrics:v1.8.0
- 1
2.3.推送镜像
# docker push jiangxlrepo/kube-state-metrics:v1.8.0
The push refers to repository [docker.io/jiangxlrepo/kube-state-metrics]
a76865c920eb: Mounted from lizhenliang/kube-state-metrics
932da5156413: Mounted from lizhenliang/addon-resizer
v1.8.0: digest: sha256:0581aa6fd5945aa0b1786ec81d0584a80873bade7375ce4d224dbb7b712bf3f6 size: 738
- 1
- 2
- 3
- 4
- 5
文章来源: jiangxl.blog.csdn.net,作者:Jiangxl~,版权归原作者所有,如需转载,请联系作者。
原文链接:jiangxl.blog.csdn.net/article/details/121208126
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)