Skip to content

Main content

Docker Platform Os Architecture Pair Tool

Calculate docker platform os architecture pair from explicit caller-supplied inputs.

Loading tool…

Description

Split a restricted container platform string.

Package and container references combine names, selectors, conditions and platform metadata. A restricted lexical split can preserve these parts without validating registry identity, available targets, dependency graphs or runtime resolution.

Split a restricted container platform string.

When to use this tool

Use Docker Platform Os Architecture Pair when checking the stated package, Cargo or container-reference component.

How to use the tool and how it works

  1. Enter platform. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read os, architecture, variant. Use the output convention below.

Split a restricted container platform string. Accept two or three slash-separated lowercase alphanumeric-start tokens with dot/underscore/hyphen continuations; return os, architecture and optional variant.1

Input fieldMeaning and unitsAccepted input
platformPlatformRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
osOsRequired. Text; maximum UTF-16 length 8192.
architectureArchitectureRequired. Text; maximum UTF-16 length 8192.
variantVariantRequired. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "platform": "linux/arm/v7"
  },
  "output": {
    "os": "linux",
    "architecture": "arm",
    "variant": "v7"
  }
}

Limitations and assumptions

  • No platform registry, architecture alias or image availability is checked.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Use the relevant package manager, runtime or registry against the actual project for complete resolution and validation.

References

  1. Calculation and input contract: development/docker-platform-os-architecture-pair — tool.io

Similar or alternative tools