summaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/scripts/docker_clean.sh
blob: 0b2227d45a73231c15ec5c0526cab5e6aca00312 (plain)
1
2
3
4
5
6
pat=$1
docker_ids=`docker ps -a | grep ${pat} | awk '{print $1}'`
for X in ${docker_ids}
do
   docker rm -f ${X}
done