Fix the fallback runtime path
Podman should not use `/tmp/run-...`. The Podman PR#8241 changed the path to `/tmp/podman-run-...` and added systemd tmpfile config to make sure the path is not removed. However the tmpDir is set in c/common and was never changed. Fixes containers/podman#11478 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
parent
8590eaf340
commit
4bd5b0f4bd
|
|
@ -48,7 +48,7 @@ func getRuntimeDir() (string, error) {
|
|||
}
|
||||
}
|
||||
if runtimeDir == "" {
|
||||
tmpDir := filepath.Join(os.TempDir(), fmt.Sprintf("run-%s", uid))
|
||||
tmpDir := filepath.Join(os.TempDir(), fmt.Sprintf("podman-run-%s", uid))
|
||||
if err := os.MkdirAll(tmpDir, 0700); err != nil {
|
||||
logrus.Debugf("unable to make temp dir %v", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue