This bug has been verified on podman-4.4.1-10.module+el8.8.0+18555+491facf3.
[test@kvm-03-guest01 ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux release 8.8 (Ootpa)
[test@kvm-03-guest01 ~]$ rpm -q podman runc systemd kernel
podman-4.4.1-10.module+el8.8.0+18555+491facf3.x86_64
runc-1.1.4-1.module+el8.8.0+18060+3f21f2cc.x86_64
systemd-239-74.el8_8.x86_64
kernel-4.18.0-477.9.1.el8_8.x86_64
[test@kvm-03-guest01 ~]$ id
uid=1000(test) gid=1000(test) groups=1000(test) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[test@kvm-03-guest01 ~]$ podman run --privileged -it --rm -v $XDG_RUNTIME_DIR/podman/podman.sock:/var/run/docker.sock docker sh
/ # 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.
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 (container-tools:rhel8 bug fix 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/RHBA-2023:3089