MCPcopy Create free account
hub / github.com/ddev/ddev / IsDockerRootless

Function IsDockerRootless

pkg/dockerutil/providers.go:113–115  ·  view source on GitHub ↗

IsDockerRootless detects if Docker is running in rootless mode on Linux It must not be Podman or Lima, which can be rootless as well.

()

Source from the content-addressed store, hash-verified

111// IsDockerRootless detects if Docker is running in rootless mode on Linux
112// It must not be Podman or Lima, which can be rootless as well.
113func IsDockerRootless() bool {
114 return IsRootless() && nodeps.IsLinux() && !IsPodman() && !IsLima()
115}
116
117// IsSELinux detects if SELinux is enabled
118func IsSELinux() bool {

Callers 10

TestDdevAllDatabasesFunction · 0.92
TestSSHAuthFunction · 0.92
processPHPActionFunction · 0.92
TestDdevRestoreSnapshotFunction · 0.92
StartMethod · 0.92
activeDockerProviderFunction · 0.92
GetAuthSSHCmdFunction · 0.92
runSSHAuthContainerFunction · 0.92
GetHostDockerInternalFunction · 0.85

Calls 4

IsLinuxFunction · 0.92
IsRootlessFunction · 0.85
IsPodmanFunction · 0.85
IsLimaFunction · 0.85

Tested by 4

TestDdevAllDatabasesFunction · 0.74
TestSSHAuthFunction · 0.74
TestDdevRestoreSnapshotFunction · 0.74