Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/zenstackhq/zenstack
/ isInContainer
Function
isInContainer
packages/cli/src/utils/is-container.ts:16–23 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
14
};
15
16
export
function
isInContainer() {
17
// TODO: Use `??=` when targeting Node.js 16.
18
if
(cachedResult === undefined) {
19
cachedResult = hasContainerEnv() || isDocker();
20
}
21
22
return
cachedResult;
23
}
Callers
1
Telemetry
Class · 0.90
Calls
2
hasContainerEnv
Function · 0.85
isDocker
Function · 0.85
Tested by
no test coverage detected