compose-go icon indicating copy to clipboard operation
compose-go copied to clipboard

expose implicit UID and GID variables

Open ndeloof opened this issue 1 year ago • 1 comments

A very common issue using compose is to bind mount local files into container, and get into permission issues. Until docker engine provides some uid+gid translation on bind mounts (maybe using bindfs?) the only option is to run container with same user as the owner of the bind-mounted file This introduce support for UID and GID variables on systems this makes sense (i.e. everything but Windows) so one can set user: ${UID}:${GID} in a compose file.

ndeloof avatar Feb 13 '24 16:02 ndeloof

Example request for such feature: https://github.com/docker/compose/issues/4081#issuecomment-1937787722 I 100% agree not being totally confident with such a non-portable feature

ndeloof avatar Feb 16 '24 19:02 ndeloof

Let's close this one as lack of portability is challenging here

ndeloof avatar Apr 17 '24 10:04 ndeloof