-
Notifications
You must be signed in to change notification settings - Fork 674
restarting Docker 1.10 after launching weave causes Docker to die #1959
Comments
It is. Docker gets very upset if it cannot talk to a plugin associated with a previously created network. When you were
you removed the weaveplugin container, but the 'weave' network still exist and references the now-defunct plugin. The only way out of this mess that I know of is to stop docker and then |
The rm indeed solved the issue. I will raise this issue with Docker too. Thanks. |
What exactly fails? I reported something similar with Docker 1.9, at moby/libnetwork#813, but from my testing they fixed that in Docker 1.10. |
When I restart docker with "service docker restart" it does not come back up. |
I have just reproduced this.
The problem, including all the above warnings/errors, goes away when I remove the call to Until we fix this, the options are: a) stick to docker 1.9 |
Thanks for checking this out. I will opt for WEAVE_NO_PLUGIN=1, as I am relying on a fix in 1.10 (assignable mac address in overlay network). |
Don't remove weave network on plugin shutdown because it bricks Docker 1.10
Fixed by #1963. |
Filed moby/moby#20140 |
The fix for this issue is now released in Weave 1.4.4 |
Installed docker 1.10 on Ubuntu:
bergtwvd@app-docker01:~$ uname -a
Linux app-docker01.xxx.xxx.xxx3.13.0-76-generic #120-Ubuntu SMP Mon Jan 18 15:59:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
At installation time I set op a Consul KV store on another host and adapted DOCKER_OPTS to point to it.
Later on I installed weave via weave launch.
At some point I have edited the DOCKER_OPTS in /etc/default/docker for other options, and restart the service.
This fails.
After some cleanup (removing all images and containers, and deleting all network bridges), I manually start the daemon and see:
bergtwvd@app-docker01:~$ sudo docker daemon
INFO[0000] [graphdriver] using prior storage driver "aufs"
INFO[0000] Graph migration to content-addressability took 0.00 seconds
INFO[0000] Firewalld running: false
WARN[0000] Could not get list of networks during endpoint cleanup: could not find endpoint count key docker/network/v1.0/endpoint_count/4e93760ae64cd929abd098e930b4f02324270ca22e6cadac69707741c958727f/ for network weave while listing: Key not found in store
ERRO[0000] could not find endpoint count key docker/network/v1.0/endpoint_count/4e93760ae64cd929abd098e930b4f02324270ca22e6cadac69707741c958727f/ for network weave while listing: Key not found in store
INFO[0000] Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address
INFO[0000] Loading containers: start.
INFO[0000] Loading containers: done.
INFO[0000] Daemon has completed initialization
INFO[0000] Docker daemon commit=590d5108 execdriver=native-0.2 graphdriver=aufs version=1.10.0
INFO[0000] API listen on /var/run/docker.sock
bergtwvd@app-docker01:~$ docker network ls
NETWORK ID NAME DRIVER
bergtwvd@app-docker01:~$ ifconfig
br-85814b5480fb Link encap:Ethernet HWaddr 02:42:22:d1:74:e0
inet addr:172.18.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
docker0 Link encap:Ethernet HWaddr 02:42:88:4e:2b:f1
inet addr:172.17.0.6 Bcast:0.0.0.0 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
docker_gwbridge Link encap:Ethernet HWaddr 02:42:97:86:73:2a
inet addr:172.20.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0 Link encap:Ethernet HWaddr 00:50:56:9a:2a:1a
inet addr:134.221.44.65 Bcast:134.221.44.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1139564 errors:0 dropped:0 overruns:0 frame:0
TX packets:168946 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1547591291 (1.5 GB) TX bytes:41282974 (41.2 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1344 errors:0 dropped:0 overruns:0 frame:0
TX packets:1344 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:74818 (74.8 KB) TX bytes:74818 (74.8 KB)
On a host without the weave plugin I have no problem. This seens to be an issue between Docker and network plugins.
The text was updated successfully, but these errors were encountered: