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() {
|
remove_plugin_network() {
|
||||||
docker run --rm --net=host \
|
if [ -z $WEAVE_NO_PLUGIN ] && check_docker_server_api_version 1.21 ; then
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
docker run --rm --net=host \
|
||||||
$PLUGIN_IMAGE --remove-network
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
|
$PLUGIN_IMAGE --remove-network
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
stop_plugin() {
|
stop_plugin() {
|
||||||
|
|||||||
Reference in new issue
Block a user