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

dsub fails with Docker image that uses non-root user #1

Closed
mbookman opened this issue Mar 13, 2017 · 1 comment
Closed

dsub fails with Docker image that uses non-root user #1

mbookman opened this issue Mar 13, 2017 · 1 comment

Comments

@mbookman
Copy link
Contributor

When dsub runs it writes the user script/command to the /src directory.
When the Docker image is set to use a non-root user, this typically leads to a permission problem:

2017/03/13 22:06:26 E: command failed: mkdir: cannot create directory '/src': Permission denied
(exit status 1)

User scan work around this by adding the following to their Dockerfile:

RUN mkdir /src
RUN chmod 777 /src

However, I think we should fix this in dsub by writing to /tmp/src.

@mbookman
Copy link
Contributor Author

This should be fixed by #35.
The user script is now written to /mnt/data/script.
A test was added for this: https://github.com/googlegenomics/dsub/blob/master/test/integration/e2e_non_root.sh

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

No branches or pull requests

1 participant