Skip to content
Advanced

Add your user to the Docker group

Updates Linux permissions so your current account can run Docker without typing sudo every time.

sudo usermod -aG docker $USER
Docker and VPSDockerVPS

What it does

Updates Linux permissions so your current account can run Docker without typing sudo every time.

When to use it

Use it when Docker commands fail with permission errors or when the VPS guide tells you to fix Docker access for your user account.

What happens next

Linux appends your current user to the `docker` group. You usually need to log out and back in before the change fully takes effect.

Risk warning

Advanced. This changes account permissions on the machine. Only do it if you understand who should be allowed to control Docker on this server.

Related guides