mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-28 19:27:58 +00:00
Merge pull request #18730 from tmds/authfilepath_non_linux
[CI:DOCS] authfile.md: add default path of file for Windows/macOS.
This commit is contained in:
commit
45e93014c5
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
|||
####> are applicable to all of those.
|
||||
#### **--authfile**=*path*
|
||||
|
||||
Path of the authentication file. Default is `${XDG_RUNTIME_DIR}/containers/auth.json`, which is set using **[podman login](podman-login.1.md)**.
|
||||
If the authorization state is not found there, `$HOME/.docker/config.json` is checked, which is set using **docker login**.
|
||||
Path of the authentication file. Default is `${XDG_RUNTIME_DIR}/containers/auth.json` on Linux, and `$HOME/.config/containers/auth.json` on Windows/macOS.
|
||||
The file is created by **[podman login](podman-login.1.md)**. If the authorization state is not found there, `$HOME/.docker/config.json` is checked, which is set using **docker login**.
|
||||
|
||||
Note: There is also the option to override the default path of the authentication file by setting the `REGISTRY_AUTH_FILE` environment variable. This can be done with **export REGISTRY_AUTH_FILE=_path_**.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue