grimsi / accservermanager

A Docker, Spring Boot 2 and Angular 7 based AC Competizione Server Manager
Other
26 stars 8 forks source link

Run servers as user and not root? #7

Closed GazCBG closed 5 years ago

GazCBG commented 5 years ago

Is there away to run the servers as a user and not as root user, due to security? I know docker supports users but never seem to work for me.

grimsi commented 5 years ago

You have to add the user that should be allowed to run docker to the "docker" group. See here

GazCBG commented 5 years ago

I looked at that on the docker site and the docker user/group from what I read has the similar privileges as root. Please corrent me if I have read this wrong.

grimsi commented 5 years ago

There is no other way afaik.You can't really run docker without root

GazCBG commented 5 years ago

I know docker needs root but is there no way to run the container as a user without root or similar privileges?

grimsi commented 5 years ago

I checked to docker docs and did not find a way, but feel free to look it up yourself maybe you have more luck