Merge "Enforce removal of container network namespace."

This commit is contained in:
Zuul 2018-05-08 08:11:26 +00:00 committed by Gerrit Code Review
commit 12f7b96546

View File

@ -35,6 +35,11 @@ echo "Stopping containers..."
echo "Removing containers..."
(docker rm -v -f ${containers_to_kill} 2>&1) > /dev/null
echo "Disconnecting containers from docker host network"
for container in ${containers_to_kill}; do
(docker network disconnect -f host $container 2>&1) > /dev/null
done
echo "Removing volumes..."
(docker volume rm ${volumes_to_remove} 2>&1) > /dev/null