broadway icon indicating copy to clipboard operation
broadway copied to clipboard

Can we get rid of the need to run as root?

Open bhuvy2 opened this issue 6 years ago • 1 comments

As usual, running a piece of code as root unless absolutely necessary is just good security practice. Can we have a script that creates a new user and sets up that user to be a part of the docker group instead of root?

bhuvy2 avatar Feb 02 '19 15:02 bhuvy2

I tried running as a user with access to docker, and the main issue I ran into is most docker containers run as root, which will make it hard to clean up the job directory after the run finishes. Even if the containers aren't running as root, it is unlikely that the docker container user and whatever service user is created will have the same UID, making cleanup annoying.

jasonB221 avatar Jun 17 '19 00:06 jasonB221