码迷,mamicode.com
首页 > 其他好文 > 详细

dockerhub 推送镜像

时间:2019-02-08 18:30:15      阅读:458      评论:0      收藏:0      [点我收藏+]

标签:sha   tomat   use   docke   csharp   head   pull   app   tom   


登录dockerhub
[root@riyimei-node1:/home]
> docker login 
Login with your Docker ID to push and pull images from Docker Hub. If you dont have a Docker ID, head over to https://hub.docker.com to create one.
Username (liweiming0611): 
Password: 
Login Succeeded

 

搜索账户镜像:

[root@riyimei-node1:/home]
> docker search liweiming0611
NAME                                 DESCRIPTION STARS OFFICIAL AUTOMATED
liweiming0611/kubernetes-app         app            0 
liweiming0611/k8s-nginx              nginx          0



[root@riyimei-node1:/home]
> docker tag centos:6 liweiming0611/kubernetes-app:centos-6

[root@riyimei-node1:/home]
> docker image ls
REPOSITORY                     TAG                 IMAGE ID            CREATED             SIZE
192.168.31.149/shop/nginx      v1                  9e2c5d78dc31        3 weeks ago         24.6MB
alpine                         nginx               9e2c5d78dc31        3 weeks ago         24.6MB
liweiming0611                  latest              9e2c5d78dc31        3 weeks ago         24.6MB
liweiming0611/k8s-app          nginx               9e2c5d78dc31        3 weeks ago         24.6MB
liweiming0611/k8s-nginx        nginx               9e2c5d78dc31        3 weeks ago         24.6MB
liweiming0611/kubernetes-app   nginx-0.0.1         9e2c5d78dc31        3 weeks ago         24.6MB
liweiming0611/kubernetes-app   nginx-v0.0.1        9e2c5d78dc31        3 weeks ago         24.6MB
192.168.31.149/shop/nginx      1.12                455672184126        5 weeks ago         520MB
alpine                         latest              3f53bb00af94        7 weeks ago         4.41MB
centos                         6                   0cbf37812bff        4 months ago        194MB
liweiming0611/kubernetes-app   centos-6            0cbf37812bff        4 months ago        194MB

[root@riyimei-node1:/home]
> docker push liweiming0611/kubernetes-app:centos-6
The push refers to repository [docker.io/liweiming0611/kubernetes-app]
5d574ede99e4: Mounted from library/centos 
centos-6: digest: sha256:2fdf04f5ab497275968ce8e4045f540199f11366d8cfaf33581319a3eefbd501 size: 529

dockerhub 推送镜像

标签:sha   tomat   use   docke   csharp   head   pull   app   tom   

原文地址:https://www.cnblogs.com/liweiming/p/10356393.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!