Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
763
func
IsInsideContainer() bool {
764
return
PathExists(
"/run/.containerenv"
)
765
}
766
767
func
IsInsideToolboxContainer() bool {
768
return
PathExists(
"/run/.toolboxenv"
)
Callers
1
ValidateSubIDRanges
Function · 0.85
Calls
1
PathExists
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…