Quantcast
Channel: How make openvpn work with docker - Stack Overflow
Viewing all articles
Browse latest Browse all 10

Answer by Savostyanov Konstantin for How make openvpn work with docker

$
0
0

Based on the answer from alexanderlukanin13. It's worked for me for the docker-compose file's version: "3.8".I added a usage pre-existing network from the documentation.

  1. Turn off the OpenVPN connection.
  2. Create a custom docker network:sudo docker network create your-network --subnet 172.24.24.0/24
  3. At the bottom of the docker-compose file:
version: "3.8"services:...volumes:...networks:  default:    name: your-network    external: true
  1. Turn on the OpenVPN connection

After that: sudo docker compose -f docker-compose.yml up -d --build works without the error:

failed to create network your-network-name_default: Error response from daemon: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network


Viewing all articles
Browse latest Browse all 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>