Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Threadfin/Threadfin
/ isRunningInContainer
Function
isRunningInContainer
src/system.go:394–399 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
392
}
393
394
func
isRunningInContainer() bool {
395
if
_, err := os.Stat(
"/.dockerenv"
); err != nil {
396
return
false
397
}
398
return
true
399
}
Callers
1
loadSettings
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected