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

Pass UID and GID to compose

Open dmitryuk opened this issue 2 years ago • 1 comments

A lot of users and issues (https://github.com/docker/compose/issues/2380, https://github.com/docker/compose/issues/4725) of docker-compose faced with problem: how to pass UID and GID? So where are some crutches like export UID or UID=$UID docker-compose up. But finally it is possible to resolve onetime on the compose side and forever forget about it. What do you think? As I understood next step is to add function WithShellVariables to https://github.com/docker/compose/blob/ca05ffe36ea889b08a9b68af413f8945e78ed867/cmd/compose/compose.go#L236

dmitryuk avatar Aug 10 '22 07:08 dmitryuk

@glours @ndeloof @nicksieger Please make a review

dmitryuk avatar Aug 23 '22 07:08 dmitryuk

Any movement on this?

Shardj avatar Feb 22 '23 16:02 Shardj

@Shardj yes, look specification PR first https://github.com/compose-spec/compose-spec/pull/282

dmitryuk avatar Mar 29 '23 09:03 dmitryuk

Closed without comments, thanks

dmitryuk avatar Nov 14 '23 09:11 dmitryuk

my bad, the reason and I moved branches to prepare compose-go/v2 module. Feel free to re-create your PR. But maybe we should first discuss this as a feature request: why would you want your container to run with same user as your (client-side) user?

ndeloof avatar Nov 14 '23 09:11 ndeloof