How to persist credentials of the podman pull/push commands to access the Image Registry default route in OCP 4

Solution Unverified - Updated -

Issue

  • I'd like to set my credentials for the podman pull and push commands from/to the Image Registry of OCP 4
  • After podman login, pull/push commands sometimes fail with unauthorized error due to this issue
  • Although I can use the --creds option, it appears with clear text

Environment

  • Red Hat OpenShift Platform
    • 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content