docker rm all the images code example
Example 1: remove all images docker
docker rmi $(docker images -a -q)
Example 2: docker remove all containers
docker rm $(docker ps -a -q)
docker rmi $(docker images -a -q)
docker rm $(docker ps -a -q)