{"record":{"id":"4f1914241bf080bf","repo":"nektos/act","slug":"failed-to-create-exec-w","errorCode":null,"errorMessage":"failed to create exec: %w","messagePattern":"failed to create exec: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/container/docker_run.go","lineNumber":591,"sourceCode":"idResp, err := cr.cli.ExecCreate(ctx, cr.id, client.ExecCreateOptions{\n\tUser:         user,\n\tCmd:          cmd,\n\tWorkingDir:   wd,\n\tEnv:          envList,\n\tTTY:          isTerminal,\n\tAttachStderr: true,\n\tAttachStdout: true,\n})\nif err != nil {\n\treturn fmt.Errorf(\"failed to create exec: %w\", err)\n}","sourceCodeStart":573,"sourceCodeEnd":609,"githubUrl":"https://github.com/nektos/act/blob/4f411281417e88660bea1c1a1749aa71ae0bd60f/pkg/container/docker_run.go#L573-L609","documentation":"Error \"failed to create exec: %w\" thrown in nektos/act.","triggerScenarios":"Thrown at pkg/container/docker_run.go:591 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Confirm the container is running before exec; check the wrapped Docker error for details.","Verify the exec command exists inside the container image.","Ensure the Docker daemon has resources available to create the exec instance."],"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"}