コンテナを全削除
$ docker ps -a | awk '{print $1}' | tail -n +2 | xargs --no-run-if-empty docker stop && docker ps -a | awk '{print $1}' | tail -n +2 | xargs --no-run-if-empty docker rm
ボリュームを全削除
$ docker volume ls | awk '{print $2}' | tail -n +2 | xargs --no-run-if-empty docker volume rm
ネットワークを全削除
$ docker network ls | awk '{if ($2 != "host" && $2 != "bridge" && $2 != "none") {print $1}}’ | tail -n +2 | xargs --no-run-if-empty docker network rm
バルス
$ docker ps -a | awk '{print $1}' | tail -n +2 | xargs --no-run-if-empty docker stop && docker ps -a | awk '{print $1}' | tail -n +2 | xargs --no-run-if-empty docker rm && docker volume ls | awk '{print $2}' | tail -n +2 | xargs --no-run-if-empty docker volume rm && docker network ls | awk '{if ($2 != "host" && $2 != "bridge" && $2 != "none") {print $1}}' | tail -n +2 | xargs --no-run-if-empty docker network rm && echo "目がー、目がー"