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

When Testbed scenarios are run in Docker, logs and files are owned by root. #592

Closed
Tracked by #590
afourney opened this issue Nov 7, 2023 · 0 comments · Fixed by #593
Closed
Tracked by #590

When Testbed scenarios are run in Docker, logs and files are owned by root. #592

afourney opened this issue Nov 7, 2023 · 0 comments · Fixed by #593
Labels
proj-autogenbench Issues related to AutoGenBench.

Comments

@afourney
Copy link
Member

afourney commented Nov 7, 2023

When Testbed scenarios are run in Docker, logs and files are owned by root. This is a well-known Docker issue (see: docker/for-mac#5480, where it is mentioned the same thing happens on WSL)

It seems that files get the same UID and permissions on the host as they were given in the image. Thus if the Docker runs as root, then the host owner will also be root. A possible workaround is to create a corresponding user (with same UID) in docker, but this a little finicky -- especially across platforms.

An alternative solution is to just make sure the files are world-writable, so that the non-root users can manage the outputs.

@afourney afourney added the proj-autogenbench Issues related to AutoGenBench. label Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proj-autogenbench Issues related to AutoGenBench.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant