How Docker uploads the image to the Docker hub

Source: Internet
Author: User
Tags tag name knowledge base docker ps docker hub

1 First you have to prepare a hub account, go to https://hub.docker.com register it!

2 Create a new warehouse at the hub, which is similar to the one on GitHub. Creation---> Create repository (Creating a knowledge Base) and then just a name, I'll call it Ubuntu, so the path is Wherein/ubuntu.

3 Run Docker PS View container, here is to get to container ID

4 Commit a container command: Docker commit CONTAINER ID Wherein/ubuntu

5 The next step is to login to a hub account command: Docker Login If successful displays

6 Push the mirror to your hub to order: Docker push Wherein/ubuntu:latest This latest is actually a tag name that will be displayed in the hub's tags

Note: Note here, sometimes push will time out, it's okay, push it again.

7 now verify the command: Docker inspect Wherein/ubuntu

8 finally see if the tags in your hub have a new update

Well, it seems to be a success!

How Docker uploads the image to the 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.