Localhost connection refused

This is a known current limitation of Docker for Windows. You cannot use localhost or any of the host’s IP addresses or names to access containers from the host itself. External machines can do so. On the host, you can only use the container’s IP address and port to access the container.

Details can be found on the following github issue: