Permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.46/containers/json": dial unix /var/run/docker.sock: connect: permission denied

I have exacty the same issue as Docker permission denied in bazzite-dx. When I try to use Docker in VSCode, I it won’t start up because it says permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.46/containers/json": dial unix /var/run/docker.sock: connect: permission denied

The solution is to run ujust dx-group. However when I run it, I get error: Justfile does not contain recipe `dx-group`

Hey,

try running sudo usermod -aG docker YOUR_USERNAME_HERE. Then you can check if your user is part of the group by running groups.

A reboot won’t hurt afterwards.

Note: my assumption is that you are using bazzite-dx or bluefin-dx already