Yacht icon indicating copy to clipboard operation
Yacht copied to clipboard

[Bug Report] Support --user in template

Open yajo opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe. Trying to set up my own templates.

Docker supports setting --user directly. LinuxServer images do their own trick using some variables, but for other normal images, setting the user there directly is easier.

Describe the solution you'd like Templates should let me define the user, and be passed to the docker daemon.

Describe alternatives you've considered Using docker-compose directly.

yajo avatar May 16 '21 09:05 yajo

https://docker-py.readthedocs.io/en/stable/containers.html

It doesn’t look like it would be too difficult to add this in. Should I add the group_add directive as well? Good catch, I didn’t even know this was a thing since I mainly stick to the lsio containers.

SelfhostedPro avatar May 16 '21 15:05 SelfhostedPro

Should I add the group_add directive as well?

Not sure... from CLI -u is enough, but I don't know from API.

yajo avatar May 17 '21 12:05 yajo