MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / normalizeDockerArchitecture

Function normalizeDockerArchitecture

common/src/docker_utils.ts:6–13  ·  view source on GitHub ↗
(architecture: string | undefined)

Source from the content-addressed store, hash-verified

4 * @returns Normalized architecture string (amd64, arm64, arm, or original if not recognized)
5 */
6export function normalizeDockerArchitecture(architecture: string | undefined): string {
7 if (!architecture) {
8 return "amd64"; // default fallback
9 }
10
11 // Return original if not one of the standard architectures
12 return architecture;
13}
14
15/**
16 * Normalizes Docker platform OS name

Callers 1

normalizeDockerPlatformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected