#!/usr/bin/env sh set -e if [ -n "$1" ];then docker stop $1 docker rm -f $1 else docker ps -a|grep Exited|awk '{print $1}'|xargs docker rm -f fi