soko.tica
2017-Oct-26 09:20 UTC
[CentOS] which group for running docker as a regular user on CentOS 7
Hi, I have installed docker and would like to run the containers without sudo. I have placed myself in dockerroot group, but still to no avail. Centos doesn't have the operator group. What should I do? Thanks in advance
Richard Grainger
2017-Oct-26 09:25 UTC
[CentOS] which group for running docker as a regular user on CentOS 7
On my system it is just a group called "docker". Your mileage may vary. On Thu, Oct 26, 2017 at 10:20 AM, soko.tica <soko.tica at gmail.com> wrote:> Hi, > > I have installed docker and would like to run the containers without sudo. > > I have placed myself in dockerroot group, but still to no avail. Centos > doesn't have the operator group. > > What should I do? > > Thanks in advance > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >
James Hogarth
2017-Oct-26 09:59 UTC
[CentOS] which group for running docker as a regular user on CentOS 7
On 26 October 2017 at 10:20, soko.tica <soko.tica at gmail.com> wrote:> Hi, > > I have installed docker and would like to run the containers without sudo. > > I have placed myself in dockerroot group, but still to no avail. Centos > doesn't have the operator group. > > What should I do? > >For security reasons the Red Hat and Fedora builds do not enable this by default. Accepting the risks and the consequences, you need to update the DOCKER_OPTS in /etc/sysconfig/docker to include '-G dockerroot' so that the docker socket gets created with the group dockerroot.