VPN breaks Docker Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
marcdraco
Posts: 48
Joined: Sat May 28, 2016 2:10 am

VPN breaks Docker

Post by marcdraco »

Who would have thunk it? (Not me, that's for certain.)

Anyhoo if you're running a VPN on your SBC and add Docker to experiment with some other stuff (safe in the knowledge that you're less likely to smeg up DietPi!) Docker doesn't start.

This has something to do with the bridge networking and I won't pretend I understand it - perhaps the guys can figure it out. However, if you don't need the bridge (which is meant for inter-container communication) you can disable it in /etc/docker/daemon.json by adding the line:

Code: Select all

{
 "bridge" : "none"
}
and restarting.
User avatar
MichaIng
Site Admin
Posts: 2423
Joined: Sat Nov 18, 2017 6:21 pm

Re: VPN breaks Docker

Post by MichaIng »

@marcdraco
Many thanks for your report.

Yeah I guess when the docker containers try to communicate through the bridge, the VPN route rules catch the requests and tunnels them through the VPN where nothing listens to. So another possibility would be to add docker specific routes.

But generally good to know and at least there is an easy solution if the bridge is not required.

Ref: https://github.com/MichaIng/DietPi/issues/2863
marcdraco
Posts: 48
Joined: Sat May 28, 2016 2:10 am

Re: VPN breaks Docker

Post by marcdraco »

Thank you Michael (and Dan) for all you do for us!
Post Reply