I’m new on networking and I just want to understand, why, when creating a container with Docker, I can connect to the host PostreSQL server using host.docker.internal
but not with 172.17.0.1
?
Is there a way to use an IP instead of host.docker.internal
?
I can ping 172.17.0.1
inside the Docker, so I just don’t understand. I opened the container with the default network (bridge
) and opened the PostgreSQL ports, even not needing to do this.
OBS: I’m on Windows