Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock:

Error this user is not part of the docker group
Written by teamember02
Updated 7 months ago

This error typically occurs when the user running the Docker command doesn't have the necessary permissions to access the Docker daemon. To fix this, add the user to the docker group using the following command:

 NB: This command will add both existing users and newly created ones to the Docker group :

  sudo chmod 666 /var/run/docker.sock

Did this answer your question?