I have a set of services that I want to run, and I want to run them using
so that I can start/stop all the services at once. I'm also running a VPN on my Raspberry Pi, and what I want to is to pass the traffic that goes through the Docker containers through my VPN such that the traffic is encrypted.
The thing is, that when I try and run the
command while my VPN is active, I will recieve the following message:
Code: Select all
pi@raspberrypi:~ $ sudo docker-compose up -d
Creating network "pi_default" with the default driver
ERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network
A bit of Googling reveals that this appears to be a common problem with Docker Compose and VPNs, and one solution is to switch off the VPN entirely. However, this isn't ideal. because then no traffic at all is being passed through the VPN tunnel. Has anyone attempted to get Docker Compose working with a VPN and succeeded in doing so? I'd like to deploy it in a way such that both my Docker traffic and other traffic not in a Docker container is secure and encrypted.
I've also seen a solution that involves setting up some kind of Docker subnet, but I have no idea how that kind of thing works.