Docker image uploaded to Docker hub

Source: Internet
Author: User
Tags docker hub

You need to follow these steps:

I haven't had a third step and I haven't been successful until I've tried a docker tag and uploaded the Docker hub without any problems.

Step1 -- Find the ID of the local image:Docker images

Step2--Login hub:Docker login--username=username--password=password--email=email

Step3--tag:docker tag <imageID> <namespace>/<image name>:<version tag eg latest>

push Mirror : <namespace >/<image name>

[[email protected] centos6]# docker images repository                      TAG                  image id             CREATED              SIZEcentos6-ssh                     latest               f6bb69ea7020         About an hour ago   556.4 MBdocker.io/jdeathe/centos-ssh    latest               f6aa254214ab        32 hours ago        214.7  mbdocker.io/centos                centos6             8315978ceaaa         4 weeks ago          194.6 MB[[email protected] centos6]# docker tag  f6bb69ea7020  516249940/centos6-ssh:v1[[email protected] centos6]# docker images repository                       TAG                  IMAGE ID            CREATED              size516249940/centos6-ssh           v1                   f6bb69ea7020        About an hour ago    556.4 MBcentos6-ssh                     latest               f6bb69ea7020        About an  hour ago   556.4 mbdocker.io/jdeathe/centos-ssh   latest               f6aa254214ab         32 hours ago        214.7  mbdocker.io/centos               centos6              8315978ceaaa         4 weeks ago         194.6 mb
[email protected] centos6]# Docker push 516249940/centos6-ssh:v1the push refers to a repository [Docker.io/516249940/cen Tos6-ssh]e1e3a72d67ca:layer already exists 05da2767947a:layer already exists Ba149593d1ad:layer already exists EED64A3D 3cac:layer already exists 70a84a101c16:layer already exists 52dcf50b12eb:pushed 08204235bfac:layer already exists 6CBD 0415f265:pushed D73c31c5daa6:layer already exists v1:digest:sha256 : 79b18121746c65f6c55f4cf424bc11f6cb3004e3e071f8083484945ff278d1b9 Size:2174[[email protected] centos6]#


Log in to my Docker hub to see the warehouse

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/8B/2F/wKiom1hGesiSw3_dAACiwCzEogw273.png-wh_500x0-wm_3 -wmp_4-s_2460154253.png "title=" Docker.png "alt=" Wkiom1hgesisw3_daaciwczeogw273.png-wh_50 "/>

This article is from the "Heaven and Earth Ice Silence" blog, please be sure to keep this source http://yanconggod.blog.51cto.com/1351649/1880051

Docker image uploaded to Docker hub

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.