Page 1 of 1

openvpn3 and docker

Posted: Fri Feb 12, 2021 5:26 pm
by martino22
Hello everyone,

I'm using the new openvpn3 client.

Now I'm learning about docker, but when I try to start a docker container via docker-compose up I get this error message:

Code: Select all

ERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network
So I did what people with no knowledge do, I asked the search engine of my trust.
And I only found a fix for the old openvpn client:

https://stackoverflow.com/questions/632 ... ork-issues
The issue here is that docker/docker-compose is unable to find a suitable address range to assign a subnet to the a new internal network since the VPN adds routes for all IP addresses.
How would I fix this issue with openvpn3.

There are 2 other options to deal with that issue, but I do not like them:
* Start docker container before the vpn
* Change all docker files to use a custom specified network

I very much would prefer a solution which just keeps working in the background. However my networking knowledge is limited. I hardly know what I'm dooing. I'm still learning.

Re: openvpn3 and docker

Posted: Fri Feb 12, 2021 5:35 pm
by Pippin
More like a docker question.

Re: openvpn3 and docker

Posted: Sat Feb 13, 2021 3:41 pm
by martino22
Well that too, but isnt it more an issue of how these two tools overlap with there network configuration?

I went to this forum because I thought someone would know to apply a certain fix of the routes for openvpn3 as it is done for openvpn2 in this post:
https://stackoverflow.com/questions/456 ... r#45694531 (I postet the wrong link before)