Remove plugin socket from mounted host directory

This commit is contained in:
Bryan Boreham committed 2017-04-27 22:17:37 +00:00
1 parent 907ba8f53b
commit 264a2cd2ad
1 file changed
+1 -1
+1 -1
View File
@@ -1448,7 +1448,7 @@ stop_proxy() {
protect_against_docker_hang() {
# If the plugin is not running, remove its socket so Docker doesn't try to talk to it
if ! is_plugin_v2_enabled 2>/dev/null ; then
rm -f /run/docker/plugins/weave.sock /run/docker/plugins/weavemesh.sock
rm -f $HOST_ROOT/run/docker/plugins/weave.sock $HOST_ROOT/run/docker/plugins/weavemesh.sock
fi
}