"Cannot Connect to the Docker Daemon. .. ." When Running Docker on Ubuntu/Wsl
I'm Trying to Run Docker in Wsl (Windows 10) Using the Command Sudo Service Docker Start, and It Shows: Starting Docker: Docker but When I Run Sudo Docker...
I'm trying to run docker in WSL (Windows 10) using the command sudo service docker start, and it shows:
Starting Docker: docker
but when I run sudo docker images, it tells me:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Any ideas on how I can fix this?
1 Answer
It comes from nftables used instead of iptables
I found this solution
sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
from these threads: