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.
Bug 2183597 - docker login compatibility issue
Summary: docker login compatibility issue
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: podman
Version: 9.3
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Jindrich Novy
QA Contact: Alex Jia
URL:
Whiteboard:
Depends On: 2183596
Blocks: 2183602
TreeView+ depends on / blocked
 
Reported: 2023-03-31 18:09 UTC by Tom Sweeney
Modified: 2023-11-07 09:58 UTC (History)
13 users (show)

Fixed In Version: podman-4.6.1-2.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2183596
: 2183602 (view as bug list)
Environment:
Last Closed: 2023-11-07 08:33:59 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github containers podman pull 17581 0 None Merged compat: /auth: parse server address correctly 2023-04-03 07:32:55 UTC
Red Hat Issue Tracker RHELPLAN-153794 0 None None None 2023-03-31 18:11:22 UTC
Red Hat Product Errata RHSA-2023:6474 0 None None None 2023-11-07 08:35:28 UTC

Description Tom Sweeney 2023-03-31 18:09:45 UTC
+++ This bug was initially created as a clone of Bug #2183596 +++

Description of problem:

There is a docker login registry compatiliby issue.  Please see: 
https://github.com/containers/podman/issues/17571 for details.

This is already fixed upstream, creating BZs to get it into RHEL 8.8/9.2 ZeroDay.

For RHEL 8.8 and 9.2, this Fix: https://github.com/containers/podman/pull/17581 needs to be backported into the Podman v4.4.1 release branch, and c/common needs to be bumped up to v0.51.2 within the same branch.

Comment 2 Tom Sweeney 2023-03-31 19:10:29 UTC
Addressed with:  https://github.com/containers/podman/pull/17581

Assigning to @jnovy for any further BZ or packaging needs.

Comment 3 Alex Jia 2023-04-11 08:33:03 UTC
This bug has been verified on podman-4.4.1-8.el9.

[test@kvm-01-guest11 ~]$ cat /etc/redhat-release 
Red Hat Enterprise Linux release 9.3 Beta (Plow)

[test@kvm-01-guest11 ~]$ rpm -q podman runc systemd kernel
podman-4.4.1-8.el9.x86_64
runc-1.1.5-2.el9.x86_64
systemd-252-13.el9_2.x86_64
kernel-5.14.0-295.el9.x86_64

[test@kvm-01-guest11 ~]$ id
uid=1000(test) gid=1000(test) groups=1000(test) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

[test@kvm-01-guest11 ~]$ podman system service -t 0 &
[1] 84942

[test@kvm-01-guest11 ~]$ podman run --privileged -it --rm -v $XDG_RUNTIME_DIR/podman/podman.sock:/var/run/docker.sock docker sh
Resolved "docker" as an alias (/etc/containers/registries.conf.d/000-shortnames.conf)
Trying to pull docker.io/library/docker:latest...
Getting image source signatures
Copying blob 04921806bf90 done  
Copying blob f56be85fc22e done  
Copying blob 7ed9ddfd3b8f done  
Copying blob 788e1ab5616a done  
Copying blob 4e33d011f086 done  
Copying blob 383037bf46bc done  
Copying blob de21e211d8be done  
Copying blob d1a705462f92 done  
Copying blob 026562b829bc done  
Copying blob 97a6e8d4b278 done  
Copying blob f4bc4d1e2e3a done  
Copying blob 06512f64e545 done  
Copying blob 65fc0503abc0 done  
Copying blob 810d9c8fb6b2 done  
Copying config e072c2e5e5 done  
Writing manifest to image destination
Storing signatures
/ # docker images
REPOSITORY   TAG       IMAGE ID       CREATED      SIZE
docker       latest    e072c2e5e550   6 days ago   319MB
/ # docker login -u foo -p bar
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: login attempt to https://index.docker.io/v1/ failed with status: 401 Unauthorized

NOTE: I can login successfully w/ real username and password.

Comment 6 Alex Jia 2023-08-22 04:22:18 UTC
This bug has been verified on podman-4.6.1-2.el9.

[test@kvm-02-guest03 ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux release 9.3 Beta (Plow)

[test@kvm-02-guest03 ~]$ rpm -q podman runc systemd kernel
podman-4.6.1-2.el9.x86_64
runc-1.1.9-1.el9.x86_64
systemd-252-17.el9.x86_64
kernel-5.14.0-356.el9.x86_64

[test@kvm-02-guest03 ~]$ id
uid=1000(test) gid=1000(test) groups=1000(test) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[test@kvm-02-guest03 ~]$ podman system service -t 0 &
[1] 87241
[test@kvm-02-guest03 ~]$ podman run --privileged -it --rm -v $XDG_RUNTIME_DIR/podman/podman.sock:/var/run/docker.sock docker sh
Resolved "docker" as an alias (/etc/containers/registries.conf.d/000-shortnames.conf)
Trying to pull docker.io/library/docker:latest...
Getting image source signatures
Copying blob 2e4943246593 done  
Copying blob 7264a8db6415 done  
Copying blob 95cddd6e4406 done  
Copying blob 4f4fb700ef54 done  
Copying blob 609329a09c8f done  
Copying blob 926b2fbdc5ad done  
Copying blob 8c9db0bb2866 done  
Copying blob 5a49a496a342 done  
Copying blob 4f3e1e90b486 done  
Copying blob 150f5b2039ca done  
Copying blob d24c11514afe done  
Copying blob 66b523b76aab done  
Copying blob 785edea07e4d done  
Copying blob e2260d69ffa1 done  
Copying config 1dab0c1da2 done  
Writing manifest to image destination
/ # docker images
REPOSITORY   TAG       IMAGE ID       CREATED       SIZE
docker       latest    1dab0c1da22a   4 weeks ago   336MB
/ # docker login -u foo -p bar
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: login attempt to https://index.docker.io/v1/ failed with status: 401 Unauthorized

Comment 8 errata-xmlrpc 2023-11-07 08:33:59 UTC
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 (Moderate: podman security, bug fix, and enhancement update), 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://access.redhat.com/errata/RHSA-2023:6474


Note You need to log in before you can comment on or make changes to this bug.