Docker – remove all images and containers
In order to remove all containers, you can use the command:
docker rm $(docker ps -a -q)In order to remove all images, you can use the command:
docker rmi $(docker images -q)