Storage and retrieval of registry credentials for "oc" commands

Updated -

As of OpenShift Container Platform 4.14, Podman auth configuration locations are preferred over Docker configuration locations.

Storage of Credentials

When logging in to the registry with oc registry login or podman login, the credentials will be stored in ${XDG_RUNTIME_DIR}/containers/auth.json by default. If ${XDG_RUNTIME_DIR}

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