title: Docker cannot bind to ipv4 while using host network
body: <p>I have a program which deploys on docker needs link to host network.So I run this commmand</p>
  <pre><code>docker run -d --network host demoProgram
  </code></pre>
  <p>The exposed port is 80 .
  I found that it only bind ipv6 after entering the command</p>
  <pre><code>netstat -tnlp 
  </code></pre>
  <p>The result of the command was</p>
  <pre><code>tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      680/rpcbind
  tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1044/sshd
  tcp6       0      0 :::3306                 :::*                    LISTEN      1097/mysqld
  tcp6       0      0 :::111                  :::*                    LISTEN      680/rpcbind
  tcp6       0      0 :::80                   :::*                    LISTEN      2052/dotnet
  tcp6       0      0 :::22                   :::*                    LISTEN      1044/sshd
  tcp6       0      0 :::33060                :::*                    LISTEN      1097/mysqld
  </code></pre>
  <p>What should I do to make the container bind ipv4?</p>