-
Notifications
You must be signed in to change notification settings - Fork 45
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
Docker-based tasks output ownership #922
Comments
Looks like adding f |
Can this be image dependent? I mean, the user of the system does not have to translate to user in the docker image, and the docker image might be run by a non-root user (?) so it will write file as that user?... All these need to be clarified before we do anything. |
I'm not sure, but a couple of docker images I recently used both writes files as root.
Even so, |
The problem is that I am not sure the docker image would work with So without With Is this the correct summary of the situation? |
On my mac, running
will result in
regardless of |
Hmm, this is interesting ... here is mine:
Note that I removed I think I get your point and it is completely valid. It seems I had a wrong understanding of what |
I do not think there is a perfect solution here so a good default is important. I believe on MacOSX the docker image is running in a VM which is run in the user space so option The decision is then if we should use |
I'm actually wondering what |
According to nextflow doc, it allows |
Agreed. I do not think I can come up with good suggestions that works safely for all scenarios we considered. I'm cool to close the ticket and leave it as is for now. |
One argument that supports |
But the difficulty is we do not know for sure beforehand whether or not the user ID on the host system will also exist in the Docker image, though for my case they are both |
docker allows the use of arbitrary user id and will simply treat it as a new normal user. The advantage is that the user-id will be used to create files in mounted drives, which is what we need here. |
According to docker doc
|
Okey then I was still accidentally correct about |
Let us see if this works reasonably well. |
This new default |
Could you test if |
It does -- see patch above! |
Currently when a task is based on
docker
the ownership for output isroot.root
. I am trying to figure out if there is a way to change it to user instead.The text was updated successfully, but these errors were encountered: