docker image rm all code example

Example 1: docker delete all images

docker rmi -f $(docker images -a -q)

Example 2: remove all images docker

docker rmi $(docker images -a -q)

Example 3: docker delete all images

docker system prune

Example 4: delete all docker images

docker system prune -a

Example 5: docker remove all image

docker system prune -a --volumes

Example 6: how to delete image docker

docker image rm [OPTIONS] IMAGE_ID [IMAGE_ID...]
#[OPTIONS]
--force , -f		Force removal of the image
--no-prune		Do not delete untagged parents