docker rm -vf $(docker ps -aq) # old
docker container rm -f $(docker container ls -aq)
docker rmi -f $(docker images -aq)
docker image rm $(docker image ls -q)
docker volume prune -f
docker volume rm $(docker volume ls -q)
docker container prune -f
docker system df
Bash
Delete all stopped containers:
docker ps -qa |xargs -I % sh -c 'docker stop % && docker rm -v %'
Bash