When you were running Docker in WSL2 and got this error message “Cannot connect to the Docker daemon at tcp://0.0.0.0:2375. Is the docker daemon running?” Instead, turn on “Expose daemon on tcp://localhost:2375 without TLS” option and use the DOCKER_HOST variable which considers security risk. The best option is enabled WSL Integration in Docker Desktop.
i.e. Docker Desktop > Resources > WSL Integration > Check: “Enable Integration with my default WSL distro” and enable the slide option to Ubuntu.
