I am following this doc and everything goes swimmingly verifying the overlay network, seeing each agent in the swarm get it created. But when I try to run the nginx image, I get this message:
root@hobo:~# docker run -itd --name=web --net=my-net --env="constraint:node==hobo" nginx
ed181ec9bd9422284451ef4106ffc272c31747a8fd187566a3ab6d768cc7fc02
Error response from daemon: Cannot start container ed181ec9bd9422284451ef4106ffc272c31747a8fd187566a3ab6d768cc7fc02: subnet sandbox join failed for "10.0.0.0/24": error creating vxlan interface: file exists
I'm not sure how to act on that. I've tried different nodes, and I've tried putting the "-H tcp://
Hey sorry for opening this. Some how my google-fu failed me earlier, there's another issue where this same thing happened, so I ended up taking down the docker service on every node, blowing away those /var/run/docker/netns/* files, and everything works.
How cool is it that I ran a wget on one container and pulled a website from another container on another host, with zero port config and mapping?!
@danehammer it's pretty cool isn't it :sunglasses:
glad you found a solution! let us know if you get stuck
happy networking!
@danehammer I keep getting this error on v1.10 and if I do a service docker stop; service iptables restart; service docker start it goes away.
I too am seeing this on 1.10. Solved by rebooting the hosts. Thanks @aravind-murthy; next time I will try restarting iptables.
For those seeing this on 1.10, please open a new issue and provide some more information about your environment - see here for details. This will help the maintainers to better identify what is causing this.
Most helpful comment
@danehammer I keep getting this error on v1.10 and if I do a
service docker stop; service iptables restart; service docker startit goes away.