Skip to content

Instantly share code, notes, and snippets.

@Mualig
Last active April 12, 2021 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mualig/2338a91d61459355cf0f4be4c8505b12 to your computer and use it in GitHub Desktop.
Save Mualig/2338a91d61459355cf0f4be4c8505b12 to your computer and use it in GitHub Desktop.
Docker service failing to start due to a network error

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.

  1. Check each node for any vx-* interfaces in /sys/class/net
ls -l /sys/class/net/ | grep vx
  1. Once we have interface id's pull more details
udevadm info /sys/class/net/vx-000000-xxxxx
  1. 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
  1. Redeploy the service.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment