OpenShift - Sign into using the podman login command

Before using the podman login command to sign into, the following curl command can be used to determine if your username and password for are valid.

curl --location --user <username>:<password> "" -v


If you are using a proxy server, the --proxy and --proxy-user options can be included.

--proxy <hostname or ip address of your proxy server>:<port>
--proxy-user <proxy server username>:<proxy server password>
--user <Red Hat username>:<Red Hat password>


If the login fails, the following should be returned.

< HTTP/1.1 401 Unauthorized


If the login is successful, the following should be returned.

< HTTP/1.1 200 OK


The podman login command can be used to sign into 


If "cannot clone: Invalid argument" is returned and you are not using sudo, try including sudo.

~]$ sudo podman login
Login Succeeded!


Optionally, the -u or --username and -p or --password options can be included.

~]$ sudo podman login --username john.doe
Login Succeeded!


Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee

Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter 6afab in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |