title: How to configure /etc/hosts to test local Docker setup
body: <p>I'm trying to develop a web app locally using native Docker for OS X (beta) to handle the entire environment.</p>
  
  <p>In order to fake the production DNS configuration (to test Nginx setup) I have edited the host file (at /private/etc/hosts):</p>
  
  <pre><code>##
  # Host Database
  #
  # localhost is used to configure the loopback interface
  # when the system is booting.  Do not change this entry.
  ##
  127.0.0.1       localhost
  255.255.255.255 broadcasthost
  ::1             localhost
  
  # Added by me
  0.0.0.0         www.mydomain.com
  </code></pre>
  
  <p>The Nginx config file is tested and is working on production server.</p>
  
  <p><strong>Expected behaviour:</strong>
  When I point my browser to www.mydomain.com it should be redirected to ip 0.0.0.0 (Dockers default IP on OSX), and my containerized web app should appear. </p>
  
  <p><strong>Actual behaviour:</strong>
  The browser shows a "Failed to open page" error message. </p>
  
  <p>What am I missing here?</p>