How to access service on host from docker swarm in Windows Server 2019


We have installed Windows Server 2019 with 1809 update for Swarm functionality. It works fine among containers. We are able to put up services in vip mode. However, we cannot access services on the host machine such as SQL server running in I was even unable to ping the container host, I could not find the host’s IP address (if it exists). As you might guess, DNS does not work either. The internet connectivity is also non-existant.

I feel like I am missing something, I cannot attach the containers to nat. on Windows’ container networking site, it says on this page, on the table at the middle: “[Container-to-external connection] Not directly supported - requires second container endpoint attached to NAT network” I have no clue what this means. Was anyone even able to use Swarm on Windows?