{"record":{"id":"56d8e5466ca17bf2","repo":"nektos/act","slug":"failed-to-wait-for-container-w","errorCode":null,"errorMessage":"failed to wait for container: %w","messagePattern":"failed to wait for container: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/container/docker_run.go","lineNumber":901,"sourceCode":"waitResult := cr.cli.ContainerWait(ctx, cr.id, client.ContainerWaitOptions{Condition: container.WaitConditionNotRunning})\nstatusCh, errCh := waitResult.Result, waitResult.Error\nvar statusCode int64\nselect {\ncase err := <-errCh:\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to wait for container: %w\", err)\n\t}\ncase status := <-statusCh:\n\tstatusCode = status.StatusCode\n}","sourceCodeStart":883,"sourceCodeEnd":919,"githubUrl":"https://github.com/nektos/act/blob/4f411281417e88660bea1c1a1749aa71ae0bd60f/pkg/container/docker_run.go#L883-L919","documentation":"Error \"failed to wait for container: %w\" thrown in nektos/act.","triggerScenarios":"Thrown at pkg/container/docker_run.go:901 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped Docker error; the daemon connection may have dropped while waiting.","Ensure the container was not removed externally while act waited on it."],"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-15T17:31:12.345Z"}