title: specifying network ip docker
body: <p>I'm using docker to deploy a zookeeper ensemble and am running into a problem which I think is due to the proxy docker uses for localhost.</p>
  <p>Edit: the issue is that while I am closing connections, they are left in TIME_WAIT</p>
  <p>I want to change the IP for my containers to something else in the private address space E.g. 192.168.0.0 subnet and see if this fixes the problem.</p>
  <p>Here's part of my current <code>docker-compose.yml</code>:</p>
  <pre><code>version: '2'
  services:
         zoo1:
                 image: zookeeper
                 restart: always
                 ports:
                         - 2181:2181
                 environment:
                         ZOO_MY_ID: 1
                        ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888 server.4=zoo4:2888:3888 server.5=zoo5:2888:3888
  
        zoo2:
                image: zookeeper
                restart: always
                ports:
                        - 2182:2181
                environment:
                        ZOO_MY_ID: 2
                        ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888 server.4=zoo4:2888:3888 server.5=zoo5:2888:3888
  </code></pre>