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