title: How to configure docker to avoid a specific address or subnet?
body: <p>In our development environment, we manage 20+ containers with docker-compose files, but from time to time one of them acquires one IP from our network and we lost connectivity. When that happens, we manually shut down the container and the network.</p>
  <p>Is there a way to configure docker to avoid that specific IP address or subnet when we add more containers?</p>
  <p>Our docker version is:</p>
  <pre><code>Client: Docker Engine - Community
   Version:           19.03.12
   API version:       1.40
   Go version:        go1.13.10
   Git commit:        48a66213fe
   Built:             Mon Jun 22 15:45:36 2020
   OS/Arch:           linux/amd64
   Experimental:      false
  </code></pre>
  <p>Our docker-compose version is:</p>
  <pre><code>docker-compose version 1.25.4, build 8d51620a
  docker-py version: 4.1.0
  CPython version: 3.7.5
  OpenSSL version: OpenSSL 1.1.0l  10 Sep 2019
  </code></pre>
  <p>The host OS is:
  <code>Linux lin_env_int_2 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux</code> (Ubuntu 18.04.4 LTS)</p>