I just want to understand why on Windows the IP of host.docker.internal
is not the IP of the host, neither 172.17.0.1
.
How all of this works on Docker?
I’ve already read the documentation but couldn’t understand how this all works out.
Questions:
-
The connection flows like that: container >
172.17.0.1
>host.docker.internal
> host ? -
If yes, why it doesn’t connects directly to the host instead of going through
host.docker.internal
? -
Why on linux you can set the
host.docker.internal
as172.17.0.1
? -
Why if you set the destination of a package on a container to
172.17.0.1
it doesn’t go to the host?