Updating the wsl helped me on this one. It happened after updating docker desktop. This should be run on the windows machine not inside the linux distro.
wsl --update --web-download