title: docker multiple containers with static addresses
body: <p>I am working on a project usually implemented with VMs. But I would like to hack with docker containers instead, in order to practice and learn something new.</p>
  
  <p>So here is what I would like to do : create several containers running on the same host, with static ip addresses, connected one to each others (but not necessarily connected to the outside world).
  In other words, I would like emulate kind of a stand alone network, composed of several computers connected to the same switch.</p>
  
  <p>I tried to change /etc/network/interfaces in containers to set static ip addresses for eth0, docker0, ... But it doesn't affect the system in any way. I tried to use --net=host, --cap-add=NET_ADMIN but it didn't help.</p>
  
  <p>It's driving me crazy. SOS!
  Thanks</p>
  
  <p>EDIT :
  Important stuff I didn't say : I'm using my Mac Book Air, and I am running boot2docker (which creates a VM running docker).
  When I run an image with "docker run -i -t ubuntu /bin/bash", I don't have docker0 as an interface : running "ip a" in the container displays only lo and eth0.</p>