I've the same issue, and using wsl2 and ubuntu 22.04;
I found the possible reason. If you are using debian or some ubuntu version that has iptables-nft as default: Install Docker on Windows (WSL) without Docker Desktop.
Try it sudo update-alternatives --config iptables
sudo update-alternatives --config iptables
and change it to iptable-legacy
It works for me. ;)
That's interesting to know about. I haven't tried yet with Ubuntu 22.04, but I will try and update the guide in case something like this is missing. Thank you!
It turns out that it's indeed necessary for Ubuntu 22.04 on WSL. So, I added instructions for it in the guide. Thanks again for pointing out!
Just to update you, later versions of docker seems to have fixed the issue without requiring this step so I have removed it from the guide.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I've the same issue, and using wsl2 and ubuntu 22.04;
I found the possible reason.
If you are using debian or some ubuntu version that has iptables-nft as default:
Install Docker on Windows (WSL) without Docker Desktop.
Try it
sudo update-alternatives --config iptablesand change it to iptable-legacy
It works for me. ;)
That's interesting to know about. I haven't tried yet with Ubuntu 22.04, but I will try and update the guide in case something like this is missing. Thank you!
It turns out that it's indeed necessary for Ubuntu 22.04 on WSL. So, I added instructions for it in the guide. Thanks again for pointing out!
Just to update you, later versions of docker seems to have fixed the issue without requiring this step so I have removed it from the guide.