Home Troubleshooting Fixed: Error Permission Denied while trying to connect to the Docker Daemon...

Fixed: Error Permission Denied while trying to connect to the Docker Daemon Socket

How to fix docker permission denied error??

Problem: Docker Permission Error

I have installed docker on the ubuntu system. After successful installation, I run the docker command. But it ends with the following error.

Read More: Install and Run Docker on Ubuntu

docker permission denied
Docker permission denied

Solution

Solution for this issue is very simple. Ned to add a user to the docker group. Docker group is automatically created during the Docker installation. As shown in the below screenshot.

sudo -aG docker <user-name>
add user to docker group
add user to docker group

LEAVE A REPLY

Please enter your comment!
Please enter your name here