I'm trying to pull and run the postgresql image from ocp like in this screenshot.
When I launch the execution, it says that I'm not authorized. I tried to logout and then login again with the oc login command but nothing changed. What am I doing wrong?
The problem has nothing to do with the OC command. You are using podman here and not OpenShift to launch a container. So the command to login to a container registry is podman login <registry> and you would provide the credentials.
Looking at your screenshot, it is trying to download an image directly from Red Hat's online registry which would be wrong for this course.
I suspect a few things ...
I think if you make sure you run the start command, you will be authenticated to the classroom container registry, and more importantly, specifying the entire line with registry and container you want to use, it should then work.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.