How to Fix the Got permission denied while trying to connect to the Docker daemon socket

When I tried to run a Docker command in Visual Studio Code’s terminal, I encountered the “Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get “http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json”: dial unix /var/run/docker.sock: connect: permission denied” error. I can’t also use the command “docker-compose up” to start and run an entire app on …

How to Fix the Got permission denied while trying to connect to the Docker daemon socket Read More »