Pulled from https://stackoverflow.com/a/64948301
To unlock a docker service failing to start with this error:
network sandbox join failed: subnet sandbox join failed for "10.0.0.0/24": error creating vxlan interface: file exists
You can try to the following steps.
- Check each node for any vx-* interfaces in
/sys/class/net
ls -l /sys/class/net/ | grep vx
- Once we have interface id's pull more details
udevadm info /sys/class/net/vx-000000-xxxxx
- If these interfaces exist we should be able to safely remove them. Replace
vx-000000-xxxxx
with the interface id from Step 2
# Check if the interface exist
sudo ip -d link show vx-000000-xxxxx
# Remove it
sudo ip link delete vx-000000-xxxxx
- Redeploy the service.