diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-10-06 06:58:02 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-10-06 06:58:02 +0000 |
| commit | f9d9abd408d0009f63ecae82491defeebf5b36d4 (patch) | |
| tree | 00e33778e3648ab14cdb9eabb394a09fdf475106 | |
| parent | 719740ade8b79f44ca80fff09decedee4bd252d7 (diff) | |
| parent | 1e86af763ba514843326885a8b172f6e548f8be4 (diff) | |
| download | kolla-f9d9abd408d0009f63ecae82491defeebf5b36d4.tar.gz kolla-f9d9abd408d0009f63ecae82491defeebf5b36d4.zip | |
Merge "put conatiner name to array in cleanup-containers"
| -rwxr-xr-x | tools/cleanup-containers | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/cleanup-containers b/tools/cleanup-containers index 4a539d4c8..4e5cea8e7 100755 --- a/tools/cleanup-containers +++ b/tools/cleanup-containers @@ -6,7 +6,7 @@ if [[ $(pgrep qemu) ]]; then exit 1 fi -containers_to_kill=" +containers_to_kill=( glance_{api,registry,data} \ haproxy \ heat_{api{,_cfn},engine} \ @@ -22,12 +22,13 @@ containers_to_kill=" openvswitch_{vswitchd,db} \ rabbitmq{,_data} \ rsyslog \ - swift_{account_{auditor,reaper,replicator,server},container_{auditor,expirer,replicator,server,updater},proxy_server,rsyncd}" + swift_{account_{auditor,reaper,replicator,server},container_{auditor,expirer,replicator,server,updater},proxy_server,rsyncd} +) echo "Stopping containers..." -(docker stop -t 2 ${containers_to_kill} 2>&1) > /dev/null +(docker stop -t 2 ${containers_to_kill[@]} 2>&1) > /dev/null echo "Removing containers..." -(docker rm -v -f ${containers_to_kill} 2>&1) > /dev/null +(docker rm -v -f ${containers_to_kill[@]} 2>&1) > /dev/null echo "All cleaned up!" |
