title: Giving a docker container a routable ip address
body: <p>I am running this on ubuntu 14.04 and have set <code>docker0</code> to a static ip which is then routed to from the public ip through the firewall. I am trying to set up my backend API to run in a docker container and am confused by a couple things. </p>
  
  <p>1.) How would I map <code>docker0</code>'s ip to the container's ip such that <code>docker0</code> would know to send the incoming packets to the container (dynamically if possible).</p>
  
  <p>2.) If not already done in such a way, how could I make it so that I don't have to set this up every time I do a fresh run of that docker container?</p>
  
  <p>Thanks in advance!</p>