mirror of
https://github.com/containers/podman.git
synced 2025-08-24 01:50:58 +08:00
14 lines
248 B
Go
14 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()
|
|
}
|