Docker allows running with sudo privileges by adding a user to the docker
group. I want to rename docker
to docker-users
.
So I created the /etc/docker/daemon.json
file with permissions 640
:
{
"group": "docker-users"
}
Then restarted docker: systemctl restart docker
.
But that doesn't work - the socket (/var/run/docker.sock
) still shows the default docker
group:
srw-rw---- 1 root docker 0 Sep 8 12:05 /var/run/docker.sock=
And my non-root (which is a member of docker-users
) still does not have sudo-less access to the docker daemon.
How do I force docker to use the config file?