結論
docker system prune --all --volumes
docker system prune
docker system prune | Docker Documentation
docker system prune
ならば,停止したコンテナ,ネットワーク,宙ぶらりんイメージ(dangling image)を一括で削除します.--all
オプションを追加するとイメージも一括で削除します.--volumes
オプションを追加すると,ボリュームも一括で削除します.
$ docker system prune --all --volumes WARNING! This will remove: - all stopped containers - all networks not used by at least one container - all volumes not used by at least one container - all images without at least one container associated to them - all build cache