Skip to content

Support preserving UID/GID when copying archives to containers#1234

Merged
cristianrgreco merged 2 commits intomainfrom
codex/issue-605-copy-uid-gid
Feb 17, 2026
Merged

Support preserving UID/GID when copying archives to containers#1234
cristianrgreco merged 2 commits intomainfrom
codex/issue-605-copy-uid-gid

Conversation

@cristianrgreco
Copy link
Collaborator

Summary

  • add public CopyToContainerOptions with copyUIDGID and noOverwriteDirNonDir
  • thread copy options through container archive copy plumbing and pre-start copy operations via withCopyToContainerOptions(...)
  • add integration coverage for copyUIDGID using explicit non-default uid/gid values
  • document copy options and their behavior

Verification commands run

  • npm run format
  • npm run lint
  • npm test -- packages/testcontainers/src/generic-container/generic-container.test.ts -t "copyUIDGID"

Test results summary

  • format and lint passed
  • targeted copyUIDGID integration tests passed (2 tests)

Closes #605

@cristianrgreco cristianrgreco added enhancement New feature or request minor Backward compatible functionality labels Feb 17, 2026
@netlify
Copy link

netlify bot commented Feb 17, 2026

Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit 33d0695
🔍 Latest deploy log https://app.netlify.com/projects/testcontainers-node/deploys/699489bebbd2a0000874b823
😎 Deploy Preview https://deploy-preview-1234--testcontainers-node.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@cristianrgreco cristianrgreco merged commit f1a9a0b into main Feb 17, 2026
672 of 673 checks passed
@cristianrgreco cristianrgreco deleted the codex/issue-605-copy-uid-gid branch February 17, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request minor Backward compatible functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support copying files to a container with a given ownership

1 participant