title: How to make Docker container accessible to other network machines through IP?
body: <p>I need to create some docker containers that must be accessed by other computers at the same network. </p>
  
  <p>Problem is that when I create the container, Docker gets IP addresses valid only within the host machine.</p>
  
  <p>I already took a look at Docker documentation (Networking) but nothing has worked.</p>
  
  <p>If I run <code>ifconfig</code> on my machine my IP address is <code>172.21.46.149</code>. When I go inside the container (Ubuntu) and run <code>ifconfig</code> the IP address is <code>172.17.0.2</code>. I need Docker to get, for example, <code>172.21.46.150</code>. </p>
  
  <p>How can I do it? </p>