#!/bin/bash for i in $(docker ps -aq -f status=exited) ; do docker rm -f -v $i done