nektos/act · error
failed to mkdir to copy content to container: %w
Error message
failed to mkdir to copy content to container: %w
What it means
Error "failed to mkdir to copy content to container: %w" thrown in nektos/act.
Source
Thrown at pkg/container/docker_run.go:724
tw := tar.NewWriter(buf)
_ = tw.WriteHeader(&tar.Header{
Name: destPath,
Mode: 0o777,
Typeflag: tar.TypeDir,
})
tw.Close()
_, err := cr.cli.CopyToContainer(ctx, cr.id, client.CopyToContainerOptions{DestinationPath: "/", Content: buf})
if err != nil {
return fmt.Errorf("failed to mkdir to copy content to container: %w", err)
}View on GitHub (pinned to 4f41128141)
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.
When it happens
Trigger: Thrown at pkg/container/docker_run.go:724 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of nektos/act@4f41128141 (2026-08-15).
Data as JSON: /api/errors/52e8a501142e7f27.
Report an issue: GitHub.