Skip to content

Conversation

@zezic
Copy link

@zezic zezic commented Oct 6, 2020

Run command as a current user to avoid creating of build artifact files with the root privileges which then are not handy to remove/overwrite.

Run command as a current user to avoid creating of build artifact files with the root privileges which then are not handy to remove/overwrite.
@cschol
Copy link
Owner

cschol commented Oct 6, 2020

That only works if a user matching the current user exists in the Docker container.

@zezic
Copy link
Author

zezic commented Oct 6, 2020

The next thing works for me:

zezic@990FXA:~$ docker run --user 12345:12345 -it bash
bash-5.0$ echo $UID
12345
bash-5.0$ id -g
12345
bash-5.0$

As well as building plugins with --user argument manually adjusted to 12345:12345.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants