Summary of reasons for Docker push failure

Source: Internet
Author: User
Tags docker hub

My laptop has not been installed in the programming environment after the repair. Because I found a very convenient vim profile under Ubuntu, and there was vim under Windows, so I wanted to use vim under Windows, but I found that it was not as easy to configure as it was under Ubuntu, so I thought I wasn't doing Docker, Then create a mirror. Deploy the C + + programming environment in this image so that you need to import this image every time.

Then, I successfully created the image. However, there were some errors when I wanted to upload this image to the Docker hub. The problem has finally been solved today. I want to upload the image name is ubt-c, first I tried the following command:

Docker Push Ubt-c
It prompts me not to push a root repository, let me add a username. So, I tried the following command:

Docker Push Bearox/ubt-c
Then get the following question:
The push refers to a repository [docker.io/bearox/ubt-c] (len:0)
Repository does not exist:bearox/ubt-c

Looking at it, it turns out that the Docker version is too low, just need to update Docker.
The way to update Docker is to check online, but I just ran the sudo apt-get install Docker.io to update it successfully. Then, run Docker push bearox/ubt-c It also prompted me some errors, the original is updated I did not login Docker, need to use Docker login command to login docker, originally thought this time finally good. When submitted again, it also hints that there is no bearox/ubt-c this warehouse, and the direct use of ubt-c is not prompted to push a root repository. Then need to ubt-c this warehouse renamed, then rename and push, finally succeeded, the command is as follows:

Docker tag Ubt-c bearox/ubt-c:latest
Docker push Bearox/ubt-c

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.