docker group

A Linux user group whose members may use Docker without sudo, which in practice gives them root on the host.

Membership is equivalent to root on the host.

In more detail

Adding your user with usermod -aG docker lets you reach the daemon socket without typing sudo. Because a member can start a container that mounts / from the host, membership equals administrator rights: grant it deliberately and only on machines where that is acceptable. Rootless mode is the alternative that does not hand out root.

Example

sudo usermod -aG docker "$USER"

Related terms

Taught in

References