-
Notifications
You must be signed in to change notification settings - Fork 881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
network sandbox join failed: error creating vxlan interface: file exists #562
Comments
@gauravphoenix I am not sure how you ended up in that situation. But to recover from it you can bring down docker and then do tha following:
|
@mrjana that worked. Thanks. |
I've also came across the same problem. And seems like other people too. Your solution seems to work, but I'm worried something in the documentation leads us to this state. |
In my case it was an issue with Error:
To fix the above errors i have created the docker network manually using below command.. |
A server reboot solved for me, don't know, what caused it. |
My swarm service was down due to this issue. I caused it by doing a yum update of docker while my docker services were still running. I found a solution here which states that this occurs due to a race condition. dockerd is supposed to delete the vxlan device after a container is stopped. $ docker service ls
ID NAME MODE REPLICAS IMAGE PORTS
ze71bkwjaqat banana_server replicated 0/1 blah.dkr.ecr.us-east-1.amazonaws.com/banana-api:banana-app-server-ad11cff *:4030->3030/tcp
$ docker service ps banana_server --no-trunc
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
beg13kixclccj0utj59jym24m banana_server.1 blah.dkr.ecr.us-east-1.amazo... qa-server-01 Ready Rejected 3 seconds ago "network sandbox join failed: subnet sandbox join failed for "10.0.11.0/24": error creating vxlan interface: file exists"
yinps5swi9xf7jmdr27uk5s1u \_ banana_server.1 blah.dkr.ecr.us-east-1.amazo... qa-server-01 Shutdown Rejected 8 seconds ago "network sandbox join failed: subnet sandbox join failed for "10.0.11.0/24": error creating vxlan interface: file exists" This was all I needed to do:
$ ip -d link show | grep vx
5659: vx-00100b-ripjm: <BROADCAST,MULTICAST> mtu 1450 qdisc noop state DOWN mode DEFAULT group default
5010: vx-00100c-o0la3: <BROADCAST,MULTICAST> mtu 1450 qdisc noop state DOWN mode DEFAULT group default
$ docker network ls | grep -E "ripjm|o0la3"
ripjm8evcjro banana-net-01 overlay swarm
o0la3crbs51r banana_default overlay swarm
$ ip link delete vx-00100b-ripjm
$ ip link delete vx-00100c-o0la3
$ docker service ls
ID NAME MODE REPLICAS IMAGE PORTS
...
ze71bkwjaqat banana_server replicated 1/1 blah.dkr.ecr.us-east-1.amazonaws.com/banana-api:banana-app-server-ad11cff *:4030->3030/tcp
$ |
@jamesbdolan Thank you, this perfectly worked for me. |
1 similar comment
@jamesbdolan Thank you, this perfectly worked for me. |
Thanks @jamesbdolan , this worked for us |
Hello, Thanks @jamesbdolan, it worked for us too ! 👍 |
Thanks @jamesbdolan, it worked for me too ! |
I am running my docker daemon as-
docker -d --kv-store=consul:10.240.222.136:8500 --label=com.docker.network.driver.overlay.bind_interface=eth0 --default-network=overlay:multihost -H tcp://10.240.27.97:2376
and when I run any container, I get following error-
network sandbox join failed: error creating vxlan interface: file exists
I've tried deleting my consul data, and then restarting docker daemon but problem persists.
Seems like the problem occurs when a vxlan interface already exists. How do I go about cleaning up networking related data? I've already tried
rm -rf /var/lib/docker/*
Docker info -
The text was updated successfully, but these errors were encountered: