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