Connect local Docker container to Wireguard

I followed the steps here to set-up a local Wireguard connection on my Mac. I can confirm that running dig +short txt _apps.internal @fdaa:0:455a::3 does indeed work (and have run some other commands).

I’m now attempting to connect to the Wireguard network in a local Docker container running via Docker for Mac. How can I do that?

Use cases:

  • Debugging fly-log-shipper locally
  • Running migrations securely from a local container