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

Allow custom user and group #22

Open
Sytten opened this issue Jun 28, 2020 · 3 comments
Open

Allow custom user and group #22

Sytten opened this issue Jun 28, 2020 · 3 comments

Comments

@Sytten
Copy link

Sytten commented Jun 28, 2020

It is a good practice to drop permissions inside the docker image for security reasons. It would be nice if we could set the PUID and the PGID as environment variables.

@scottmando2000
Copy link

Bump on this issue

@meonkeys
Copy link

This looks a bit more complex than simply forcing a different user and group. The server appears to expect a usable home dir and shell. I'll see about forcing a different user, but it won't be pretty.

@meonkeys
Copy link

https://gitlab.com/-/snippets/3679226 proves the concept. Like I said, not pretty. But it works: just specify the user and goup as 50121 on the host when you start the container.

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

No branches or pull requests

3 participants