Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
docker logging fails when pushing image to docker hub:
[root@openshift-112 ~]# docker push docker.io/deshuai/hello-openshift:v1
Do you really want to push to public registry? [y/n]: y
The push refers to a repository [docker.io/deshuai/hello-openshift] (len: 1)
f7591c834e4d: Image already exists
0a9b9b6b06fb: Preparing
unauthorized: access to the requested resource is not authorized
2. Some error log in docker demon
msg="Handler for POST /v1.21/images/docker.io/deshuai/hello-openshift/push returned error: Error: Status 403 trying to push repository docker.io/deshuai/hello-openshift to official registry: needs to be forced"
msg="HTTP Error" err="Error: Status 403 trying to push repository docker.io/deshuai/hello-openshift to official registry: needs to be forced" statusCode=403
Version-Release number of selected component (if applicable):
docker-1.9.1-16.el7.x86_64
How reproducible:
always
Steps to Reproduce:
http://fpaste.org/324435/62955145/
Actual results:
Pushing image to docker hub fails
Expected results:
Pushing image to docker hub works.
Additional info:
Changing docker.io to https://index.docker.io/v1/ in config.json solve the problem.
The docker version in latest RHEL/centos has this problem still.
docker-1.9.1-25.el7.centos.x86_64
docker-1.9.1-25.el7.x86_64
```
[root@cloudhost ~]# docker push docker.io/dustymabe/bb
Do you really want to push to public registry? [y/n]: y
The push refers to a repository [docker.io/dustymabe/bb] (len: 1)
307ac631f1b5: Image push failed
unauthorized: access to the requested resource is not authorized
```
In docker-1.9.1-38.el7.x86_64,
# docker login
Username: timesu
Password:
Email:
WARNING: login credentials saved in /root/.docker/config.json
Login Succeeded
# docker push docker.io/timesu/busybox
Do you really want to push to public registry? [y/n]: y
The push refers to a repository [docker.io/timesu/busybox] (len: 1)
307ac631f1b5: Pushed
4b51ded9aed1: Pushed
latest: digest: sha256:293ee253bd4949e2ef7e4437337543cc8132dd9abc2f4899df01b96508f87236 size: 2738
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/RHSA-2016-1034.html