if anyone is having the same problem in VS2022, go to the Docker Desktop app → Settings → Resources → WSL Integration. I noticed that I didn’t have any distro installed, so I installed Ubuntu using `wsl --install Ubuntu` and it worked!