Docker Community Forums

Share and learn in the Docker community.

No /home isolation in docker container with multiple users

(Noppakorn) #1

So I use docker container for Environment Management.
The problem is when i create multiple user the other user can access other user /home which shouldn’t be possible.
Is this a normal behavior?
And how can I isolate the home folder?

(David Maze) #2

Anyone who can run docker run has unrestricted root access over the system. Sometimes you can consider this acceptable (it’s a somewhat disposable CI system; you’d give everyone sudo access anyways) but if you don’t then you can’t run Docker on a shared system.