mirror of
https://github.com/moby/moby.git
synced 2026-07-12 18:45:06 +00:00
It's not needed, now the daemon tells RootlessKit about port mappings directly. Signed-off-by: Rob Murray <rob.murray@docker.com>
9 lines
249 B
Go
9 lines
249 B
Go
package rootless // import "github.com/docker/docker/pkg/rootless"
|
|
|
|
import "os"
|
|
|
|
// RunningWithRootlessKit returns true if running under RootlessKit namespaces.
|
|
func RunningWithRootlessKit() bool {
|
|
return os.Getenv("ROOTLESSKIT_STATE_DIR") != ""
|
|
}
|