title: Can not access wordpress configured in Docker even though its status is running
body: <p>Im following the instruction here to make a wordpress site in Docker:
  <a href="http://www.sitepoint.com/how-to-use-the-official-docker-wordpress-image/" rel="nofollow noreferrer">http://www.sitepoint.com/how-to-use-the-official-docker-wordpress-image/</a></p>
  
  <p>1.pull&amp;run mysql image:
  docker run --name wordpressdb -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=wordpress -d mysql:5.7</p>
  
  <p>2.pull&amp;run wordpress image and link the mysql container to it:
  docker run -e WORDPRESS_DB_PASSWORD=password -d --name wordpress --link wordpressdb:mysql  wordpress</p>
  
  <p><strong>and i can see those two containers running:</strong>
  <a href="https://i.stack.imgur.com/3CZtu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3CZtu.png" alt="enter image description here"></a></p>
  
  <p><strong>and i can inspect the wordpress container and try to get the ip and port:</strong>
  <a href="https://i.stack.imgur.com/23xlA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/23xlA.jpg" alt="enter image description here"></a></p>
  
  <p><strong><em>also, when I inspect the mysql container, i can not use the host/ip to login into mysql browser,</em></strong> </p>
  
  <p><a href="https://i.stack.imgur.com/e1iwj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e1iwj.png" alt="enter image description here"></a></p>
  
  <p>********edit-add -p *****************</p>
  
  <p>I run the wordpress container with -p </p>
  
  <p><a href="https://i.stack.imgur.com/Gsb7k.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Gsb7k.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/O8zpK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O8zpK.jpg" alt="enter image description here"></a></p>
  
  <p>**************edit again********************</p>
  
  <p><a href="https://i.stack.imgur.com/V6yJE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V6yJE.png" alt="enter image description here"></a></p>
  
  <p>********************update**********************</p>
  
  <p><a href="https://i.stack.imgur.com/pCNIK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pCNIK.jpg" alt="enter image description here"></a></p>
  
  <hr>
  
  <p><a href="https://i.stack.imgur.com/3hXCz.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3hXCz.jpg" alt="enter image description here"></a></p>
  
  <hr>
  
  <p><a href="https://i.stack.imgur.com/2dLRb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2dLRb.png" alt="enter image description here"></a></p>
  
  <p>***********finally i made it work*******************</p>
  
  <p><strong>finally, i made it work, if i run the container with specific ip for example 127.0.0.1 in the -p command:</strong></p>
  
  <pre><code> -p 127.0.0.1:8080:80
  </code></pre>
  
  <p>it wont work</p>
  
  <p><strong>if i dont specify the ip, or use 0.0.0.0 as the ip, it will work:</strong></p>
  
  <pre><code>-p 0.0.0.0:8080:80
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/hsMof.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hsMof.png" alt="enter image description here"></a></p>