"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: dockerbut 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?
101 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: