title: Docker container extremely slow when network mode host
body: <p>I’ve had a working setup with a docker-compose and especially a wildfly image running in network mode = host.
  Since the company stopped the internet connection, the startup of the container is extremely slow and end with a timeout.</p>
  <p>I found out that when I run the container in network mode = bridge, it is working just normally.</p>
  <p>I tried with a docker-hub wildfly empty image to be sure the issue is not on my side and it’s the same problem.
  It starts in 5s in bridge, and 33 in host…</p>
  <p>I use the command :</p>
  <blockquote>
  <p>docker run --network host jboss/wildfly:18.0.1.Final</p>
  </blockquote>
  <p>to start the container in network host mode.</p>
  <p>My docker version is 19.03.15 and it’s running in a VM in bridge mode.</p>
  <p>I need the network mode host because we access the containers from outside the VM and they need to communicate with each other.</p>
  <p>I can’t use internet anymore on the VM neither the host machine because of the security policy of the company.</p>
  <p>So I’m looking for a solution to still use network host without this not-understandable slowness…
  I’m not sure if it’s coming from wildfly or the docker itself ?</p>
  <p>Thanks by advance,
  Loïc.</p>