What I was after

So, you’re running Unraid and you have a few Docker containers that are using another Docker as their Network Type (say, to use that container’s encrypted traffic connection) – how do you access those Docker containers and their Web UI remotely over VPN? The default behaviour when using WireGuard to connect to your network remotely is that those containers wouldn’t be accessible.

[Here’s how to set up WireGuard on Unraid if you don’t have that bit in place yet.]

This issue seems pretty niche, but it impacts a lot of people and it’s hard to Google.

The Result(s)

Reddit user Adeon_eu to the rescue.

The Important Bits

  1. Go to WireGuard (for me, this was easiest to do on my phone’s WireGuard app) and get the Local tunnel network address (listed as Addresses under the Interface field on the WireGuard iOS app).
     
  2. Edit the parent docker whose network the other dockers are using and add the address to the LAN_NETWORK field, keeping the existing entry and adding the new IP range after a comma.
     
    • For example, maybe the LAN_NETWORK field was 192.168.1.0/24 and your WireGuard’s address is 10.253.0.0/24, the new entry for the LAN_NETWORK field should be 192.168.1.0/24,10.253.0.0/24.

Now you’ll be able to access those child Dockers when you’re away from home.