56b2e4
% containers-auth.json(5)
56b2e4
56b2e4
# NAME
56b2e4
containers-auth.json - syntax for the registry authentication file
56b2e4
56b2e4
# DESCRIPTION
56b2e4
56b2e4
A credentials file stored at `${XDG_RUNTIME_DIR}/containers/auth.json` in
56b2e4
json format used to authenticate against container image registries.
56b2e4
56b2e4
## FORMAT
56b2e4
56b2e4
The auth.json file stores encrypted authentication information for the
56b2e4
user to container image registries.  The file can have zero to many entries and
56b2e4
is created by a `login` command from a container tool such as `podman login` or
56b2e4
`buildah login`.  Each entry includes the name of the registry and then an auth
56b2e4
token in the form of a base64 encoded string from the concatenation of the
56b2e4
username, a colon, and the password.
56b2e4
56b2e4
The following example shows the values found in auth.json after the user logged in to
56b2e4
their accounts on quay.io and docker.io:
56b2e4
56b2e4
```
56b2e4
{
56b2e4
	"auths": {
56b2e4
		"docker.io": {
56b2e4
			"auth": "erfi7sYi89234xJUqaqxgmzcnQ2rRFWM5aJX0EC="
56b2e4
		},
56b2e4
		"quay.io": {
56b2e4
			"auth": "juQAqGmz5eR1ipzx8Evn6KGdw8fEa1w5MWczmgY="
56b2e4
		}
56b2e4
	}
56b2e4
}
56b2e4
```
56b2e4
56b2e4
An entry can be removed by using a `logout` command from a container
56b2e4
tool such as `podman logout` or `buildah logout`.
56b2e4
56b2e4
# SEE ALSO
56b2e4
    buildah-login(1), buildah-logout(1), podman-login(1), podman-logout(1)
56b2e4
56b2e4
# HISTORY
56b2e4
Feb 2020, Originally compiled by Tom Sweeney <tsweeney@redhat.com>