openvpn3 and docker

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

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: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: openvpn3 and docker

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

More like a docker question.
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

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