diff options
author | 2017-11-24 14:24:53 +0100 | |
---|---|---|
committer | 2017-11-27 07:22:42 +0100 | |
commit | fc838c481e6f588906f6282ee1891b4b98ab1779 (patch) | |
tree | c6f4e6854c500692ad08d85f6b9c259d2e8736df /docker/remove_hc2vpp_containers.sh | |
parent | 8f481756073847efaa6f54c6482b3850b3cd7535 (diff) |
Various scripts for creating and connecting hc2vpp docker containers
Change-Id: I755a23ba279a84600edfa2ddef89c2fe645c7945
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'docker/remove_hc2vpp_containers.sh')
-rwxr-xr-x | docker/remove_hc2vpp_containers.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docker/remove_hc2vpp_containers.sh b/docker/remove_hc2vpp_containers.sh new file mode 100755 index 000000000..c1fbf705a --- /dev/null +++ b/docker/remove_hc2vpp_containers.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +ids=$(docker ps -aq --filter ancestor=hc2vpp) + +# Stop all hc2vpp based containers +echo "Stopping containers: $ids" +docker stop $ids + +# Delete all hc2vpp based containers +echo "Removing containers: $ids" +docker rm $ids |