docker list images remove code example
Example 1: remove all images docker
docker rmi $(docker images -a -q)
Example 2: docker remove image
docker image rm [OPTIONS] IMAGE [IMAGE...]
docker rmi $(docker images -a -q)
docker image rm [OPTIONS] IMAGE [IMAGE...]