remove unused images docker manually code example
Example 1: docker remove dangling images
docker image prune
Example 2: remove unused images docker manually
$ docker rmi $(docker images -q -f dangling=true)
Example 3: 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
Example 4: docker remove container
docker system prune
Example 5: docker delete image
docker system prune -a