株式会社TECH LUCKという会社で代表兼エンジニアをしている齊藤です。
Macのターミナルでfishを使っている場合に、Dockerの中のすべてのデータを削除する方法について備忘録として残しておきます。
本当にDockerに関連するすべてのデータなのかは不明ですが、思い当たるものはすべて削除しているかと思います。
ターミナル
docker stop (docker ps -q)
docker rm -f (docker ps -aq)
docker rmi -f (docker images -q)
docker volume rm $(docker volume ls -qf dangling=true)
docker builder prune
docker network prune
参考文献(圧倒的感謝)