Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commands executed as root #24

Open
mmalisz opened this issue Apr 14, 2018 · 1 comment
Open

Commands executed as root #24

mmalisz opened this issue Apr 14, 2018 · 1 comment

Comments

@mmalisz
Copy link

mmalisz commented Apr 14, 2018

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)?

@splitbrain
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants