简体   繁体   中英

Unable to push image to docker hub

I have built a docker image and have committed the changes, and am attempting to push the image to my public docker hub account.

When attempting to push the image to the docker hub registry it seems to try utilise my hub username as a private server address.

What i have done done so far is run a fedora base image, make my changes and then commit the changed using docker commit dd09de55abc9 username/fedora-23-httpd

When i do this and check the image using docker images i get the output:

# docker images
REPOSITORY                              TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
/username/fedora-23-httpd             latest              0b9b4d0b820e        21 seconds ago      468.5 MB

Then when running docker push username/fedora-23-httpd i get the message:

The push refers to a repository [username/fedora-23-httpd] (len: 1)
unable to ping registry endpoint https://username/v0/
v2 ping attempt failed with error: Get https://username/v2/: dial tcp: lookup username: No address associated with hostname
 v1 ping attempt failed with error: Get https://username/v1/_ping: dial tcp: lookup username: No address associated with hostname

From other tutorials I have read my commands appear to be correct, but the output of the images command shows the repository name with a / at the start.

Can any one see what i'm doing wrong here?

从fedora 23安装中删除了默认docker版本-使用重新安装

wget -qO- https://get.docker.com/ | sh

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM