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