menu

Run Docker as Non-root User in Linux

The solution is simple:

To fix the Docker permission denied error and use Docker as non-root user, create a group called “docker” with the following command:

$ sudo groupadd docker

Next, add your user to the docker group:

$ sudo usermod -aG docker $USER

After adding the user to the docker group, log out and log back in to take effect the changes.

Reference:

Run Docker as Non-root User in Linux



KF

Comments