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
- Enter platform. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- 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 field | Meaning and units | Accepted input |
|---|---|---|
| platform | Platform | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| os | Os | Required. Text; maximum UTF-16 length 8192. |
| architecture | Architecture | Required. Text; maximum UTF-16 length 8192. |
| variant | Variant | Required. Text; maximum UTF-16 length 8192. |
{
"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
Similar or alternative tools
- Docker Image Tag Colon Boundary
Split image and tag using the last colon after the last slash.
- Docker Image Digest Algorithm Split
Split a digest-qualified image reference.