Check we have Docker 1.9 or newer before trying to remove a network
This commit is contained in:
1 parent
48658f011f
commit
7c2e808924
1 file changed
+5
-3
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user