https://bugzilla.redhat.com/show_bug.cgi?id=1218639
Bug ID: 1218639 Summary: docker push to dockerhub does not work (docker 1.16) Product: Red Hat Enterprise Linux 7 Version: 7.1 Component: docker Keywords: Extras Severity: high Assignee: dwalsh@redhat.com Reporter: miminar@redhat.com QA Contact: lsu@redhat.com CC: adimania@gmail.com, admiller@redhat.com, agoldste@redhat.com, extras-qa@fedoraproject.org, golang@lists.fedoraproject.org, hushan.jia@gmail.com, ichavero@redhat.com, jalmansor@gmail.com, jchaloup@redhat.com, jhonce@redhat.com, jperrin@centos.org, lsm5@redhat.com, maszulik@redhat.com, mattdm@redhat.com, mgoldman@redhat.com, miminar@redhat.com, s@shk.io, spousty@redhat.com, thrcka@redhat.com, vbatts@redhat.com Depends On: 1217987 Keywords: Extras
+++ This bug was initially created as a clone of Bug #1217987 +++
Description of problem:
I can build and tag a docker image on my local machine but I can not push it to dockerhub. I am sure I have a dockerhub account and I can push with F20 and docker 15. Maceij can push with Ubuntu and Docker 16.
Version-Release number of selected component (if applicable): Docker version 1.6.0, build 3eac457/1.6.0
How reproducible: Always
Steps to Reproduce: 1. Make a local docker image 2. Tag it 3. Try to push it to dockerhub
Actual results:
$ sudo docker build -t thesteve0/openshift-qpid:latest . Sending build context to Docker daemon 2.048 kB Sending build context to Docker daemon Step 0 : FROM fedora/qpid ---> 6b45d8271e13 Step 1 : MAINTAINER spousty spousty@redhat.com ---> Using cache ---> 32b450b8f57a Step 2 : ENV IMAGE_DESCRIPTION QPID C++ AMQP Server 0.30.3 ---> Using cache ---> 03be2f186029 Step 3 : ENV IMAGE_TAGS qpid,qpid030, ---> Using cache ---> 13797654c23f Step 4 : ENV IMAGE_EXPOSE_SERVICES 5672:qpid ---> Using cache ---> 3a0843e1e66e Step 5 : EXPOSE 5672 ---> Using cache ---> 465c93d05637 Step 6 : ENTRYPOINT qpidd -t --auth=no ---> Using cache ---> 4ff0b3679c09 Successfully built 4ff0b3679c09
$ sudo docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE thesteve0/openshift-qpid latest 4ff0b3679c09 2 minutes ago 607.1 MB
$ sudo docker push thesteve0/openshift-qpid:latest
Do you really want to push to public registry? [Y/n]: Y The push refers to a repository [docker.io/thesteve0/openshift-qpid] (len: 1) FATA[0001] Repository does not exist: docker.io/thesteve0/openshift-qpid
Expected results:
The image should be pushed to dockerhub
Additional info:
--- Additional comment from Steven Citron-Pousty on 2015-05-03 17:11:15 EDT ---
See the thread starting here for this issue hitting another user a few days ago
https://forums.docker.com/t/docker-push-error-fata-0001-respository-does-not...
--- Additional comment from Andy Goldstein on 2015-05-03 22:14:23 EDT ---
The current workaround: sudo docker push docker.io/thesteve0/openshift-qpid:latest. You need to include the docker.io/ prefix when pushing to the Hub.
--- Additional comment from Jason Al-Mansor on 2015-05-04 11:39:52 EDT ---
I've noticed this issue as well. I tried swapping the package binary with the binary from docker and it worked fine and it didn't display the public registry prompt.
--- Additional comment from Michal Minar on 2015-05-05 07:24:17 EDT ---
Thank you Steven for reporting this. PR https://github.com/rhatdan/docker/pull/48 fixes it.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1217987 [Bug 1217987] docker push to dockerhub does not work (docker 1.16)
https://bugzilla.redhat.com/show_bug.cgi?id=1218639
Michal Minar miminar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|dwalsh@redhat.com |miminar@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1218639
--- Comment #2 from Michal Minar miminar@redhat.com --- PR for rhel7: https://github.com/rhatdan/docker/pull/49
https://bugzilla.redhat.com/show_bug.cgi?id=1218639 Bug 1218639 depends on bug 1217987, which changed state.
Bug 1217987 Summary: docker push to dockerhub does not work (docker 1.16) https://bugzilla.redhat.com/show_bug.cgi?id=1217987
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Resolution|--- |ERRATA
https://bugzilla.redhat.com/show_bug.cgi?id=1218639
--- Comment #3 from Michal Minar miminar@redhat.com --- Although the PR has been merged, current rhel7-1.6 branch stays buggy. I'll resubmit the PR again.
https://bugzilla.redhat.com/show_bug.cgi?id=1218639
Daniel Walsh dwalsh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |MODIFIED CC| |dwalsh@redhat.com
--- Comment #4 from Daniel Walsh dwalsh@redhat.com --- Michal can you verify this is fixed in docker-1.6.2 version.
https://bugzilla.redhat.com/show_bug.cgi?id=1218639
Michal Minar miminar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version| |docker-1.6.2-6.el7.x86_64
--- Comment #5 from Michal Minar miminar@redhat.com --- Yes, it's fixed.
https://bugzilla.redhat.com/show_bug.cgi?id=1218639
Micah Abbott miabbott@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |miabbott@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1218639
Subhendu Ghosh sghosh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sghosh@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1218639
errata-xmlrpc errata-xmlrpc@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
https://bugzilla.redhat.com/show_bug.cgi?id=1218639
--- Doc Text *updated* by Michal Minar miminar@redhat.com --- Cause: Docker did not try to match short names against local fully qualified images names while doing a push.
Consequence: Push command reported that image name could not be found. User had to fully qualify the argument and run the push again.
Fix: Docker now tries to match short names against local images fully qualified with default registry (those added with --add-registry flag).
Result: User doesn't have to fully-qualify image name in order to push it to one of default registries.
https://bugzilla.redhat.com/show_bug.cgi?id=1218639
--- Comment #7 from Luwen Su lsu@redhat.com --- In docker-1.6.2-10.el7.x86_64
start daemon as #docker -d -D & #docker push docker.io/timesu/busybox
INFO[0199] -job push(docker.io/timesu/busybox) = ERR (1)
Please login prior to push: Username: timesu Password: Email: timesuss@hotmail.com EBU[0221] Calling POST /auth INFO[0221] POST /v1.18/auth INFO[0221] +job auth() INFO[0221] +job resolve_index(https://index.docker.io/v1/) INFO[0222] -job resolve_index(https://index.docker.io/v1/) = OK (0) DEBU[0222] pinging registry endpoint https://index.docker.io/v1/ DEBU[0222] attempting v1 ping for registry endpoint https://index.docker.io/v1/ DEBU[0222] attempting v1 login to registry endpoint https://index.docker.io/v1/ DEBU[0223] https://index.docker.io/v1/users/ -- HEADERS: map[User-Agent:[docker/1.6.2 go/go1.4.2 kernel/3.10.0-243.el7.x86_64 os/linux arch/amd64]]
But once i pushed # docker push time/busybox DEBU[0425] pinging registry endpoint https://index.docker.io/v1/ DEBU[0425] attempting v1 ping for registry endpoint https://index.docker.io/v1/ Repository does not exist: docker.io/time/busybox INFO[0425] -job push(time/busybox) = ERR (1) The push refers to a repository [docker.io/time/busybox] (len: 0) FATA[0001] Repository does not exist: docker.io/time/busybox
#docker tag time/busybox docker.io/time/busybox will workaround it, means #docker push time/busybox success after there is a docker.io/time/busybox
https://bugzilla.redhat.com/show_bug.cgi?id=1218639
Luwen Su lsu@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |VERIFIED
--- Comment #8 from Luwen Su lsu@redhat.com --- In docker-1.6.2-14.el7.x86_64, #docker pull busybox #docker tag busybox timesu/busybox #docker push timesu/busybox:latest# docker tag busybox:latest INFO[0033] POST /v1.18/images/timesu/busybox/push?force=1&tag=latest INFO[0033] +job push(timesu/busybox) INFO[0033] +job resolve_repository(timesu/busybox) INFO[0033] -job resolve_repository(timesu/busybox) = OK (0)
So move to verified
https://bugzilla.redhat.com/show_bug.cgi?id=1218639
errata-xmlrpc errata-xmlrpc@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|VERIFIED |RELEASE_PENDING
https://bugzilla.redhat.com/show_bug.cgi?id=1218639
errata-xmlrpc errata-xmlrpc@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RELEASE_PENDING |CLOSED Resolution|--- |ERRATA Last Closed| |2015-06-23 05:29:30
--- Comment #10 from errata-xmlrpc errata-xmlrpc@redhat.com --- Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
For information on the advisory, and where to find the updated files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2015-1167.html
golang@lists.fedoraproject.org