When running docker ps -a
in the default WSL instance you see “Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
“
![](https://toggen.com.au/wp-content/uploads/2024/02/image-2.png)
Solution:
Goto Resources WSL Integration and make sure Enable integration with my default WSL distro and click “Apply & restart”
![](https://toggen.com.au/wp-content/uploads/2024/02/image-1-1024x575.png)
You should now see output from docker commands in your WSL instance
![](https://toggen.com.au/wp-content/uploads/2024/02/image-3-1024x197.png)
0 Comments