MCPcopy
hub / github.com/moby/moby / IsRootless

Method IsRootless

internal/testutil/environment/environment.go:165–167  ·  view source on GitHub ↗

IsRootless returns whether the rootless mode is enabled

()

Source from the content-addressed store, hash-verified

163
164// IsRootless returns whether the rootless mode is enabled
165func (e *Execution) IsRootless() bool {
166 return os.Getenv("DOCKER_ROOTLESS") != ""
167}
168
169// IsUserNamespaceInKernel returns whether the kernel supports user namespaces
170func (e *Execution) IsUserNamespaceInKernel() bool {

Calls

no outgoing calls