{"record":{"id":"52e8a501142e7f27","repo":"nektos/act","slug":"failed-to-mkdir-to-copy-content-to-container-w","errorCode":null,"errorMessage":"failed to mkdir to copy content to container: %w","messagePattern":"failed to mkdir to copy content to container: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/container/docker_run.go","lineNumber":724,"sourceCode":"tw := tar.NewWriter(buf)\n_ = tw.WriteHeader(&tar.Header{\n\tName:     destPath,\n\tMode:     0o777,\n\tTypeflag: tar.TypeDir,\n})\ntw.Close()\n_, err := cr.cli.CopyToContainer(ctx, cr.id, client.CopyToContainerOptions{DestinationPath: \"/\", Content: buf})\nif err != nil {\n\treturn fmt.Errorf(\"failed to mkdir to copy content to container: %w\", err)\n}","sourceCodeStart":706,"sourceCodeEnd":742,"githubUrl":"https://github.com/nektos/act/blob/4f411281417e88660bea1c1a1749aa71ae0bd60f/pkg/container/docker_run.go#L706-L742","documentation":"Error \"failed to mkdir to copy content to container: %w\" thrown in nektos/act.","triggerScenarios":"Thrown at pkg/container/docker_run.go:724 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped Docker error; the container may have stopped or the path may be invalid.","Ensure the target directory path inside the container is valid and writable."],"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"}