The reason you’re having this,is because on Linux, the docker daemon (and your containers) run on the Linux machine itself, so “localhost”is also the host that the container is running on,and the ports are mapped to.OnWindows(and OS X), the docker daemon,and your containers cannot run natively, so only the docker client is running on your Windows machine, but the daemon (and your containers) run in a VirtualBoxVirtualMachine, that runs Linux.