Skip to content

Instantly share code, notes, and snippets.

View t3nsed's full-sized avatar
🚲

Johann t3nsed

🚲
View GitHub Profile

Using a Docker with a VPN

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.

Setup

  • 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

Keybase proof

I hereby claim:

  • I am t3nsed on github.
  • I am tensed (https://keybase.io/tensed) on keybase.
  • I have a public key whose fingerprint is 7102 F85D C072 5CDF 4901 E174 9207 B12B D8C0 589B

To claim this, I am signing this object: