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
- Docker socket — The file-like connection point, usually /var/run/docker.sock, through which programs send commands to the Docker daemon.
- sudo — A command that runs another command with administrator (root) rights after checking you are allowed to.
- root user — The all-powerful administrator account on Linux, with user ID 0, which can read or change anything.
- rootless mode — Running the Docker daemon and containers as an ordinary user instead of root.
Taught in
- Install Docker And Verify Your Environment — Docker Architecture & Production Containers