automatically remove the volume a container when it exits code example
Example 1: remove all images docker
docker rmi $(docker images -a -q)
Example 2: docker delete all images
docker system prune
Example 3: delete all docker images
docker system prune -a