title: How make openvpn work with docker
body: <p>I have recently installed privacy vpn, and it turns out that enabled openvpn breaks docker. </p>
  
  <p>When I try to run <code>docker-compose up</code> i get following error </p>
  
  <pre><code>ERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network
  </code></pre>
  
  <p>Disabling vpn fixes the problem (however I'd rather not disable it). Is there any way to make these two co-exist peacefully? I use debian jessie, and my openvpn has following version string</p>
  
  <pre><code> OpenVPN 2.3.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Jun 26 2017
  </code></pre>
  
  <p>A lot of people "solved" this problem by disabling the openvpn, so I'm asking specifically on how to make these two work at the same time. </p>
  
  <p>References: </p>
  
  <ol>
  <li><a href="https://stackoverflow.com/a/45377351/7918">https://stackoverflow.com/a/45377351/7918</a></li>
  <li><a href="https://stackoverflow.com/a/42499393/7918">https://stackoverflow.com/a/42499393/7918</a></li>
  </ol>
  
  <p>If this makes any difference my vpn provider is: <a href="https://www.ovpn.com/" rel="noreferrer">https://www.ovpn.com/</a> and here is (somewhat redacted) config file: </p>
  
  <pre><code>client
  dev tun
  
  proto udp
  
  remote host port
  remote-random
  
  mute-replay-warnings
  replay-window 256
  
  push "dhcp-option DNS 46.227.67.134"    
  push "dhcp-option DNS 192.165.9.158"
  
  remote-cert-tls server
  cipher aes-256-cbc
  pull
  
  nobind
  reneg-sec 432000
  resolv-retry infinite
  
  comp-lzo
  verb 1
  
  persist-key
  persist-tun
  auth-user-pass /etc/openvpn/credentials
  ca ovpn-ca.crt
  tls-auth ovpn-tls.key 1
  </code></pre>