title: Docker container IP address
body: <p>I use Docker on Mac OSX.</p>
  
  <p>After running a container, I check IP address.</p>
  
  <pre><code>docker inspect container-name | grep IP
  "LinkLocalIPv6Address": "",
      "LinkLocalIPv6PrefixLen": 0,
      "SecondaryIPAddresses": null,
      "SecondaryIPv6Addresses": null,
      "GlobalIPv6Address": "",
      "GlobalIPv6PrefixLen": 0,
      "IPAddress": "172.17.0.5",
      "IPPrefixLen": 16,
      "IPv6Gateway": "",
              "IPAddress": "172.17.0.5",
              "IPPrefixLen": 16,
              "IPv6Gateway": "",
              "GlobalIPv6Address": "",
              "GlobalIPv6PrefixLen": 0, 
  </code></pre>
  
  <p>Now when I go to 172.17.0.5, there is no response.</p>
  
  <p>Then check IP address in another way.</p>
  
  <pre><code>docker-machine ip default
  192.168.99.102
  </code></pre>
  
  <p>192.168.99.102 works.</p>
  
  <p>Now my question is why it outputs different IP address and the first one doesn't work.</p>