diff options
Diffstat (limited to 'sdc-os-chef/scripts/docker_clean.sh')
-rw-r--r-- | sdc-os-chef/scripts/docker_clean.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sdc-os-chef/scripts/docker_clean.sh b/sdc-os-chef/scripts/docker_clean.sh new file mode 100644 index 0000000000..0b2227d45a --- /dev/null +++ b/sdc-os-chef/scripts/docker_clean.sh @@ -0,0 +1,6 @@ +pat=$1 +docker_ids=`docker ps -a | grep ${pat} | awk '{print $1}'` +for X in ${docker_ids} +do + docker rm -f ${X} +done |