mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
Merge pull request #4232 from csomh/auth-file-path
Fix default path for auth.json
This commit is contained in:
@ -21,7 +21,7 @@ func GetAuthFile(authfile string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if runtimeDir, err := util.GetRuntimeDir(); err == nil {
|
if runtimeDir, err := util.GetRuntimeDir(); err == nil {
|
||||||
return filepath.Join(runtimeDir, "auth.json")
|
return filepath.Join(runtimeDir, "containers/auth.json")
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user