mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 16:35:45 +00:00
13 lines
248 B
Go
13 lines
248 B
Go
package env
|
|
|
|
import (
|
|
"github.com/containers/podman/v5/pkg/rootless"
|
|
"github.com/containers/podman/v5/pkg/util"
|
|
)
|
|
|
|
func getRuntimeDir() (string, error) {
|
|
if !rootless.IsRootless() {
|
|
return "/run", nil
|
|
}
|
|
return util.GetRootlessRuntimeDir()
|
|
}
|