{"record":{"id":"849fae59ba8b7fc0","repo":"nektos/act","slug":"incorrect-container-platform-option-s","errorCode":null,"errorMessage":"incorrect container platform option '%s'","messagePattern":"incorrect container platform option '(.+?)'","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/container/docker_run.go","lineNumber":452,"sourceCode":"var platSpecs *specs.Platform\nif supportsContainerImagePlatform(ctx, cr.cli) && cr.input.Platform != \"\" {\n\tdesiredPlatform := strings.SplitN(cr.input.Platform, `/`, 2)\n\n\tif len(desiredPlatform) != 2 {\n\t\treturn fmt.Errorf(\"incorrect container platform option '%s'\", cr.input.Platform)\n\t}\n\n\tplatSpecs = &specs.Platform{\n\t\tArchitecture: desiredPlatform[1],\n\t\tOS:           desiredPlatform[0],\n\t}\n}","sourceCodeStart":434,"sourceCodeEnd":470,"githubUrl":"https://github.com/nektos/act/blob/4f411281417e88660bea1c1a1749aa71ae0bd60f/pkg/container/docker_run.go#L434-L470","documentation":"Error \"incorrect container platform option '%s'\" thrown in nektos/act.","triggerScenarios":"Thrown at pkg/container/docker_run.go:452 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a valid platform value such as linux/amd64 or linux/arm64 for --container-architecture.","Leave the platform option empty to use the host default platform."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4f411281417e88660bea1c1a1749aa71ae0bd60f","analyzedAt":"2026-08-15T09:19:46.307Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}