MCPcopy Create free account
hub / github.com/docker/cli / runningWithRootlessKit

Function runningWithRootlessKit

internal/registry/config.go:75–77  ·  view source on GitHub ↗

runningWithRootlessKit is a fork of [rootless.RunningWithRootlessKit], but inlining it to prevent adding that as a dependency for docker/cli. [rootless.RunningWithRootlessKit]: https://github.com/moby/moby/blob/b4bdf12daec84caaf809a639f923f7370d4926ad/pkg/rootless/rootless.go#L5-L8

()

Source from the content-addressed store, hash-verified

73//
74// [rootless.RunningWithRootlessKit]: https://github.com/moby/moby/blob/b4bdf12daec84caaf809a639f923f7370d4926ad/pkg/rootless/rootless.go#L5-L8
75func runningWithRootlessKit() bool {
76 return runtime.GOOS == "linux" && os.Getenv("ROOTLESSKIT_STATE_DIR") != ""
77}
78
79// CertsDir is the directory where certificates are stored.
80//

Callers 1

CertsDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…