mirror of
https://github.com/containers/podman
synced 2024-10-20 17:23:30 +00:00
Fix default path for auth.json
Default path should be ${XDG_RUNTIME_DIR}/containers/auth.json according to the docs. This regressed to ${XDG_RUNTIME_DIR}/auth.json in #3760. Fixes: #4227 Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
This commit is contained in:
parent
f39e097a81
commit
f4c7a66149
|
@ -21,7 +21,7 @@ func GetAuthFile(authfile string) string {
|
|||
}
|
||||
|
||||
if runtimeDir, err := util.GetRuntimeDir(); err == nil {
|
||||
return filepath.Join(runtimeDir, "auth.json")
|
||||
return filepath.Join(runtimeDir, "containers/auth.json")
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue