Docker: Remove all images and containers
You use Docker, but working with it created lots of images and containers. You want to remove all of them to save disk space.
Warning: This will destroy all your images and containers. It will not be possible to restore them!
Run those commands in a shell:
# Delete all containers $ sudo docker rm $(docker ps -a -q) # Delete all images $ sudo docker rmi $(docker images -q)