sail icon indicating copy to clipboard operation
sail copied to clipboard

chown mounted directories

Open kylecarbs opened this issue 6 years ago • 5 comments

Mounted dirs will use the root user by default. After mounting we need to chown

kylecarbs avatar Apr 20 '19 18:04 kylecarbs

They shouldn't be root user by default, should be the same uid as whatever they are on the host.

For single user systems, this should be seamless.

nhooyr avatar Apr 20 '19 22:04 nhooyr

Docker volume mounts ignore user specification

On Sat, Apr 20, 2019 at 5:01 PM Anmol Sethi [email protected] wrote:

They shouldn't be root user by default, should be the same uid as whatever they are on the host.

For single user systems, this should be seamless.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/codercom/sail/issues/48#issuecomment-485181260, or mute the thread https://github.com/notifications/unsubscribe-auth/ABYSSUHUANNGLAFOTPL3JR3PROHB5ANCNFSM4HHKG7PA .

-- Ammar Bandukwala

Co-founder and CTO

ammario avatar Apr 20 '19 23:04 ammario

it ignores the --user flag for docker run but the mounted folder/file still has the same gid/uid as the host.

nhooyr avatar Apr 20 '19 23:04 nhooyr

It's been my experience that the created intermediate directories are owned by root

ammario avatar Apr 20 '19 23:04 ammario

That is true and highly unfortunate.

nhooyr avatar Apr 20 '19 23:04 nhooyr