MCPcopy 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
16export 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

TelemetryClass · 0.90

Calls 2

hasContainerEnvFunction · 0.85
isDockerFunction · 0.85

Tested by

no test coverage detected