docker-phpfarm icon indicating copy to clipboard operation
docker-phpfarm copied to clipboard

Commands executed as root

Open mmalisz opened this issue 7 years ago • 1 comments

I setup my projects with composer and all the files are created as root. Doesn't matter if I use install, require or create project. Doesn't matter if I execute command using loaded docker image, or with an independent command.

Is it possible to override that with current user (just like apache's uid)?

mmalisz avatar Apr 14 '18 09:04 mmalisz

There's the --user command for docker itself, but it only allows you to select the user inside the container.

The user only gets set up when the default entry is used. I guess we would need to adjust our run.sh to be able to accept parameters that would get passed to a user shell after setting up the user...

So the answer is that it's not easily possible right now, but would be a nice addition.

splitbrain avatar Apr 27 '18 07:04 splitbrain