Merge pull request #1551 from weaveworks/1547-proxy-restart-no-kill-containers

Proxy restart shouldn't kill containers

Fixes #1547.
This commit is contained in:
Matthias Radestock committed 2015-10-19 13:55:48 +01:00
commit db9229f485
2 files changed
+25 -7

No files matched your search

@@ -25,6 +25,12 @@ run_on $HOST1 sudo kill -KILL $(docker_on $HOST1 inspect --format='{{.State.Pid}
sleep 1
check_attached
# Restarting proxy shouldn't kill unattachable containers
proxy_start_container $HOST1 -di --name=c3 --restart=always # Use ipam, so it won't be attachable w/o weave
weave_on $HOST1 stop
weave_on $HOST1 launch-proxy
assert_raises "proxy exec_on $HOST1 c3 $CHECK_ETHWE_UP"
# Restart docker itself, using different commands for systemd- and upstart-managed.
run_on $HOST1 sh -c "command -v systemctl >/dev/null && sudo systemctl restart docker || sudo service docker restart"
sleep 1