diff --git a/weave b/weave index 680a52e8..8283f097 100755 --- a/weave +++ b/weave @@ -1704,9 +1704,11 @@ launch_plugin() { } remove_plugin_network() { - docker run --rm --net=host \ - -v /var/run/docker.sock:/var/run/docker.sock \ - $PLUGIN_IMAGE --remove-network + if [ -z $WEAVE_NO_PLUGIN ] && check_docker_server_api_version 1.21 ; then + docker run --rm --net=host \ + -v /var/run/docker.sock:/var/run/docker.sock \ + $PLUGIN_IMAGE --remove-network + fi } stop_plugin() {