{"record":{"id":"e1fa25a16aec9b3f","repo":"nektos/act","slug":"failed-to-attach-to-container-w","errorCode":null,"errorMessage":"failed to attach to container: %w","messagePattern":"failed to attach to container: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/container/docker_run.go","lineNumber":851,"sourceCode":"out, err := cr.cli.ContainerAttach(ctx, cr.id, client.ContainerAttachOptions{\n\tStream: true,\n\tStdout: true,\n\tStderr: true,\n})\nif err != nil {\n\treturn fmt.Errorf(\"failed to attach to container: %w\", err)\n}","sourceCodeStart":833,"sourceCodeEnd":869,"githubUrl":"https://github.com/nektos/act/blob/4f411281417e88660bea1c1a1749aa71ae0bd60f/pkg/container/docker_run.go#L833-L869","documentation":"Error \"failed to attach to container: %w\" thrown in nektos/act.","triggerScenarios":"Thrown at pkg/container/docker_run.go:851 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped Docker error; the container may have exited before attach completed.","Ensure the container is created and the Docker daemon connection is stable."],"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"}