openvpn3 and docker

This forum is for general conversation and user-user networking.
Post Reply
martino22
OpenVpn Newbie
Posts: 2
Joined: Fri Feb 12, 2021 5:20 pm

openvpn3 and docker

Post by martino22 » Fri Feb 12, 2021 5:26 pm

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.

User avatar
Pippin
Forum Team
Posts: 971
Joined: Wed Jul 01, 2015 8:03 am

Re: openvpn3 and docker

Post by Pippin » Fri Feb 12, 2021 5:35 pm

More like a docker question.

martino22
OpenVpn Newbie
Posts: 2
Joined: Fri Feb 12, 2021 5:20 pm

Re: openvpn3 and docker

Post by martino22 » Sat Feb 13, 2021 3:41 pm

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)

Post Reply