Docker Community Forums

Share and learn in the Docker community.

Windows containers networking services that are hardcoded to localhost


#1

There are services that connect to each other via localhost only - over the network. I have dockerised each of these windows services but i want to know if there is any way to network these containers so the services running on different containers can see each other through localhost.

Someone on the docker slack mentioned if the containers are using the same network namespace it is possible. I am not sure how to do this for windows containers.

I really don’t want to run multiple services in a single container just because they connect via localhost