delete all images and containers in docker code example
Example 1: docker remove all images
docker rmi $(docker images -a -q)
Example 2: how to delete docker containers
docker system prune -a
docker rmi $(docker images -a -q)
docker system prune -a