My guess is that you use Docker Desktop. That will not work. You need port forward.
This slide can illustrate how you have three localhosts and the host network will mean the host of the virtual machine.
Share and learn in the Docker community.
My guess is that you use Docker Desktop. That will not work. You need port forward.
This slide can illustrate how you have three localhosts and the host network will mean the host of the virtual machine.