59b5c6075f
This utility was only used in a single location (as part of `docker info`), but the `pkg/rootless` package is imported in various locations, causing rootlesskit to be a dependency for consumers of that package. Move GetRootlessKitClient to the daemon code, which is the only location it was used. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
11 lines
393 B
Go
11 lines
393 B
Go
package rootless // import "github.com/docker/docker/pkg/rootless"
|
|
|
|
import "os"
|
|
|
|
// RootlessKitDockerProxyBinary is the binary name of rootlesskit-docker-proxy
|
|
const RootlessKitDockerProxyBinary = "rootlesskit-docker-proxy"
|
|
|
|
// RunningWithRootlessKit returns true if running under RootlessKit namespaces.
|
|
func RunningWithRootlessKit() bool {
|
|
return os.Getenv("ROOTLESSKIT_STATE_DIR") != ""
|
|
}
|