Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GenericContainer withFileSystemBind: creates a root owned directory/file #8871

Open
nicolasduminil opened this issue Jul 10, 2024 · 0 comments
Labels

Comments

@nicolasduminil
Copy link

Module

Core

Testcontainers version

1.19.8

Using the latest Testcontainers version?

Yes

Host OS

Ubuntu 22.04.4 LTS

Host Arch

x86

Docker version

26.1.4

What happened?

Using the following statement:

new GenericContainer<>("...")
  ...
  .withFileSystemBind("...", "...", BindMode.READ_WRITE)
  ...;

creates a root:root directory/file while executed by a normal, non-root user.

Is there any way to avoid that and to create directories/files owned by the current user ?

Relevant log output

No response

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant