MCPcopy
hub / github.com/containers/toolbox / IsInsideContainer

Function IsInsideContainer

src/pkg/utils/utils.go:763–765  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

761}
762
763func IsInsideContainer() bool {
764 return PathExists("/run/.containerenv")
765}
766
767func IsInsideToolboxContainer() bool {
768 return PathExists("/run/.toolboxenv")

Callers 1

ValidateSubIDRangesFunction · 0.85

Calls 1

PathExistsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…