Docker Swarm mode routing mesh not working with wireguard VPN Docker Swarm mode routing mesh not working with wireguard VPN docker docker

Docker Swarm mode routing mesh not working with wireguard VPN


I had this issue and made the following changes:

  1. I moved my wireguard addresses from 10.0.* to 192.168.* (i have a feeling that swarm is allocating on top of these).
  2. docker swarm init --advertise-addr 192.168.2.123 with the wireguard ip4 address of the master node.

That managed to fix it, and it still works after rebooting the master and worker nodes!