datastack-net / dockerized

Run popular commandline tools within docker
MIT License
1.27k stars 39 forks source link

Mismatching User/Group cause file permission issues on Unix #43

Open boukeversteegh opened 2 years ago

boukeversteegh commented 2 years ago

Description

Files created by dockerized commands are not owned by the host's current user, but for example root. This makes dockerized hard to use on unix systems, as generated files cannot be modified by the user.

It is also inconsistent with the design goal that Dockerized commands should behave the same as native commands.

Reproduction

> dockerized bash -c 'touch foo'
ls -l foo
-rw-r--r-- 1 root root 0 Apr 22 10:57 foo

Possible Solutions

These are all ideas I could come up with so far. Your thoughts and suggestions are welcome. The goal is to find a solution with no blockers (:x:), and remove ❔ by doing more research.