Skip to content

Commit

Permalink
Merge pull request #22201 from cgwalters/doc-man
Browse files Browse the repository at this point in the history
docs/podman-login: Give an example of writing the persistent path
  • Loading branch information
openshift-merge-bot[bot] authored Mar 29, 2024
2 parents fb046fc + f7b9168 commit 45b809c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/source/markdown/podman-login.1.md.in
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,27 @@ print detailed information about credential store

## EXAMPLES

Add login credentials for specified registry to default authentication file.
Add login credentials for specified registry to default authentication file;
note that unlike the `docker` default, the default credentials are under `$XDG_RUNTIME_DIR`
which is a subdirectory of `/run` (an emphemeral directory) and hence do not persist across reboot.

```
$ podman login quay.io
Username: umohnani
Password:
Login Succeeded!
```

To explicitly preserve credentials across reboot, you will need to specify
the default persistent path:

```
$ podman login --authfile ~/.config/containers/auth.json quay.io
Username: umohnani
Password:
Login Succeeded!
```

Add login credentials using specified username and password for local registry to default authentication file.
```
$ podman login -u testuser -p testpassword localhost:5000
Expand Down

0 comments on commit 45b809c

Please sign in to comment.