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

Support for '--user' option #10

Closed
onlyjob opened this issue Dec 9, 2019 · 2 comments
Closed

Support for '--user' option #10

onlyjob opened this issue Dec 9, 2019 · 2 comments

Comments

@onlyjob
Copy link
Contributor

onlyjob commented Dec 9, 2019

Please implement support for user option: https://www.nomadproject.io/docs/job-specification/task.html#user

This is useful to select user for running a command inside container (e.g. podman run --user=nobody --init --rm docker.io/library/debian:stable whoami).

Thanks.

@onlyjob
Copy link
Contributor Author

onlyjob commented Dec 9, 2019

Docker driver supports that: https://www.nomadproject.io/docs/drivers/docker.html#pids_limit:

Additionally, the docker driver supports customization of the container's user through the task's user option.

towe75 added a commit that referenced this issue Dec 25, 2019
@towe75
Copy link
Collaborator

towe75 commented Dec 25, 2019

See latest commit. It includes the feature, a readme snipped and a unit test. Please check.

@towe75 towe75 closed this as completed Jul 7, 2020
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

No branches or pull requests

2 participants