Bug 1218639
| Summary: | docker push to dockerhub does not work (docker 1.16) | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Michal Minar <miminar> |
| Component: | docker | Assignee: | Michal Minar <miminar> |
| Status: | CLOSED ERRATA | QA Contact: | Luwen Su <lsu> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.1 | CC: | adimania, admiller, agoldste, dwalsh, extras-qa, golang-updates, hushan.jia, ichavero, jalmansor, jchaloup, jhonce, jperrin, lsm5, maszulik, mattdm, mgoldman, miabbott, miminar, sghosh, spousty, s, thrcka, vbatts |
| Target Milestone: | rc | Keywords: | Extras |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | docker-1.6.2-6.el7.x86_64 | Doc Type: | Bug Fix |
| Doc Text: |
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.
|
Story Points: | --- |
| Clone Of: | 1217987 | Environment: | |
| Last Closed: | 2015-06-23 09:29:30 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1217987 | ||
| Bug Blocks: | |||
|
Description
Michal Minar
2015-05-05 13:19:44 UTC
PR for rhel7: https://github.com/rhatdan/docker/pull/49 Although the PR has been merged, current rhel7-1.6 branch stays buggy. I'll resubmit the PR again. Michal can you verify this is fixed in docker-1.6.2 version. Yes, it's fixed. 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 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 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 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 |