title: Access Localhost from within container with Docker Stack
body: <p>I have a VM running in Azure, that I'm trying to connect to a port on the VM from within a container. </p>
  
  <p>just running the container, I can do something like <code>docker run -it --net="host" managed-service-identity</code> this works as expected. </p>
  
  <p>How can I replicate that under docker stack? </p>