nektos/act · error
incorrect container platform option '%s'
Error message
incorrect container platform option '%s'
What it means
Error "incorrect container platform option '%s'" thrown in nektos/act.
Source
Thrown at pkg/container/docker_run.go:452
var platSpecs *specs.Platform
if supportsContainerImagePlatform(ctx, cr.cli) && cr.input.Platform != "" {
desiredPlatform := strings.SplitN(cr.input.Platform, `/`, 2)
if len(desiredPlatform) != 2 {
return fmt.Errorf("incorrect container platform option '%s'", cr.input.Platform)
}
platSpecs = &specs.Platform{
Architecture: desiredPlatform[1],
OS: desiredPlatform[0],
}
}View on GitHub (pinned to 4f41128141)
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.
When it happens
Trigger: Thrown at pkg/container/docker_run.go:452 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of nektos/act@4f41128141 (2026-08-15).
Data as JSON: /api/errors/849fae59ba8b7fc0.
Report an issue: GitHub.