{"record":{"id":"28409fa5507ce904","repo":"nektos/act","slug":"failed-to-create-container-w","errorCode":null,"errorMessage":"failed to create container: '%w'","messagePattern":"failed to create container: '%w'","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/container/docker_run.go","lineNumber":501,"sourceCode":"createResult, err := cr.cli.ContainerCreate(ctx, client.ContainerCreateOptions{\n\tConfig:           config,\n\tHostConfig:       hostConfig,\n\tNetworkingConfig: networkingConfig,\n\tPlatform:         platSpecs,\n\tName:             input.Name,\n})\nif err != nil {\n\treturn fmt.Errorf(\"failed to create container: '%w'\", err)\n}","sourceCodeStart":483,"sourceCodeEnd":519,"githubUrl":"https://github.com/nektos/act/blob/4f411281417e88660bea1c1a1749aa71ae0bd60f/pkg/container/docker_run.go#L483-L519","documentation":"Error \"failed to create container: '%w'\" thrown in nektos/act.","triggerScenarios":"Thrown at pkg/container/docker_run.go:501 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the image exists locally or can be pulled (docker pull <image>).","Check the wrapped Docker daemon error for the concrete cause (name conflict, invalid config, missing image).","Remove stale containers with the same name (act --rm or docker rm) and retry."],"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"}