Hello Podsters,
Trying to pull from
container-registry.oracle.com using podman instead of docker but auth
does not seem to work right for
container-registry.oracle.com from podman, while it does
work as advertised from docker pull command. Have a look at this and LMK if this is a bug,
will be fixed, etc. Note that I previously followed the step of logging in to
container-registry.oracle.com at the URL as described here
https://docs.oracle.com/cd/E37670_01/E75728/html/oracle-registry-server.html . Then I try
to pull images using podman (does not authenticate properly - apparently - see below):
---
ubuntu@ubuntu-ThinkPad-P72:~/Desktop$ podman pull
container-registry.oracle.com/os/oraclelinux:7.6
Trying to pull
container-registry.oracle.com/os/oraclelinux:7.6...
unable to retrieve auth token: invalid username/password
Error: error pulling image "container-registry.oracle.com/os/oraclelinux:7.6":
unable to pull
container-registry.oracle.com/os/oraclelinux:7.6: unable to pull image:
Error initializing source
docker://container-registry.oracle.com/os/oraclelinux:7.6:
unable to retrieve auth token: invalid username/password
--- now I've previously logged in to URL as instructed and tied an 8-hour auth to my
oracle single sign-on ---
ubuntu@ubuntu-ThinkPad-P72:~/Desktop$ podman login
container-registry.oracle.com
Username: gilbert(a)orabuntu-lxc.com
Password:
Error: error logging into "container-registry.oracle.com": invalid
username/password
ubuntu@ubuntu-ThinkPad-P72:~/Desktop$ podman login
container-registry.oracle.com
Username: gilbert(a)orabuntu-lxc.com
Password:
Error: error logging into "container-registry.oracle.com": invalid
username/password
--- I try a couple times using the password and also the password enclosed in "
". Neither authenticates successfully using podman ---
--- Now I try same login using docker and authentication succeeds (note my pw has
upper/lower case, numerals, and special character) ---
ubuntu@ubuntu-ThinkPad-P72:~/Desktop$ sudo docker login
container-registry.oracle.com
Username: gilbert(a)orabuntu-lxc.com
Password:
Login Succeeded
--- Trying a podman pull again after the successful docker login - no go does not auth
---
ubuntu@ubuntu-ThinkPad-P72:~/Desktop$ podman pull
container-registry.oracle.com/os/oraclelinux:7.6
Trying to pull
container-registry.oracle.com/os/oraclelinux:7.6...
open /home/ubuntu/.docker/config.json: permission denied
Error: error pulling image "container-registry.oracle.com/os/oraclelinux:7.6":
unable to pull
container-registry.oracle.com/os/oraclelinux:7.6: unable to pull image:
Error initializing source
docker://container-registry.oracle.com/os/oraclelinux:7.6: error
getting username and password: error reading JSON file
"/home/ubuntu/.docker/config.json": open /home/ubuntu/.docker/config.json:
permission denied
--- Try a pull using docker auth that has been set and it works fine ---
ubuntu@ubuntu-ThinkPad-P72:~/Desktop$ sudo docker pull
container-registry.oracle.com/os/oraclelinux:7.6
7.6: Pulling from os/oraclelinux
04e172e76262: Pull complete
Digest: sha256:a6ee3b4c6a52a529a6de77bb25c3d0a99e99e1ad81cd936cd14b100288ffe246
Status: Downloaded newer image for
container-registry.oracle.com/os/oraclelinux:7.6
ubuntu@ubuntu-ThinkPad-P72:~/Desktop$
So is this an issue with podman that it is not able to handle the authentication to Oracle
container registry, whereas docker can and does ? If yes can we file this as an
enhancement request or bug fix ? Thanks Gilbert