this won't work for everyone. Depending on how you configure your container to network, this may or may not need tweaks. I just know it works for the few containers I usually use.
This will never work because neither docker nor most vpns will stop taking over IP-subspaces by default, disrespecting other software who might also need them. Docker is especially bad with this, since it doesnt even give you a proper error but simply crashes with the "can't connect to docker daemon" error with is very misleading.
- make sure docker starts first, i.e. before you connect your vpn. The easiest way to do this is by telling
systemd
to start it by default