MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / dockerImageExists

Function dockerImageExists

packages/cli/src/commands/render.ts:1122–1129  ·  view source on GitHub ↗
(tag: string)

Source from the content-addressed store, hash-verified

1120}
1121
1122function dockerImageExists(tag: string): boolean {
1123 try {
1124 execFileSync("docker", ["image", "inspect", tag], { stdio: "pipe", timeout: 10_000 });
1125 return true;
1126 } catch {
1127 return false;
1128 }
1129}
1130
1131function dockerImageTagForPlatform(version: string, platform: string): string {
1132 // Suffix the tag with the arch so amd64 and arm64 images of the same

Callers 1

ensureDockerImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected