Output files to host when using Docker#1307
Conversation
Provides an example of how to create output files in the host filesystem when using Docker.
|
Hi @petegallagher , that is an important hint, thanks! Could add 1-2 points though or do you want me to do that?
Cheers, Dirk |
|
Hi @drwetter
Thanks, Peter |
|
Hi Peter, thanks for the update. You assume the container user is allowed to write into $PWD which only works with very loose (e.g. 777) permissions [1]: Without any further comment people will stumble over this. So at least the should get a hint. OTOH I do not want people to recommend to set any directory to 777 so that they can do the docker mount, as this is security-wise a bad recommendation. So either the suggested commandline needs to be amended or a big warning needs to be there when saying it only works with 777. I don't know what's the best is, let me sleep over it. Opinions? Cheers, Dirk [1]: It might work by coincidence if the local user and the container UID match. PS: Why not picking |
Provides an example of how to create output files in the host filesystem when using Docker.