If you're using WSL2 and Docker Desktop, you might need to simply open the Docker Desktop app. Not totally sure why, but this seems to fix the issue.