title: how to assign-static-ip-to-docker-container in docker-py
body: <p>I think I know how to assign a static ip in docker.
  Something like this seems to work:</p>
  
  <p>docker run -it --rm --net=br0 --cap-add=NET_ADMIN --ip=172.27.153.11 mbussim</p>
  
  <p>The problem is doing this in docker-py, which I think is just a python docker interface to docker.</p>
  
  <p>In principle, docker-py tries to follow the docker lead:</p>
  
  <p>You would think something like this would  work:</p>
  
  <p>options = {
              "detach": True,
              "ip": "172.27.153.11",
              #"remove": True,
              "name": "mbussim_" + str(count),
              "cap_add": "NET_ADMIN"
              }
          }</p>
  
  <pre><code>       self.dockcon = self.dockerclient.containers.run(self.dimg, **options)
  </code></pre>
  
  <p>However, this does not work. Perhaps, this is not possible it docker-py? </p>