rm 148 B

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