Check we have Docker 1.9 or newer before trying to remove a network

This commit is contained in:
Bryan Boreham committed 2015-12-22 12:10:48 +00:00
1 parent 48658f011f
commit 7c2e808924
1 file changed
+5 -3
+5 -3
View File
@@ -1713,9 +1713,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() {