Celeb Glow
news | March 28, 2026

"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 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?

10

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:

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy