xxxxxxxxxx
# remove containers created between now upto 4hrs back
docker container prune --filter "until=4h"
# remove images created between now upto 4hrs back
docker image prune --filter "until=4h"
xxxxxxxxxx
docker image rm [OPTIONS] IMAGE [IMAGE ]
#[OPTIONS]
--force , -f Force removal of the image
--no-prune Do not delete untagged parents
xxxxxxxxxx
docker image rm [OPTIONS] IMAGE_ID [IMAGE_ID ]
#[OPTIONS]
--force , -f Force removal of the image
--no-prune Do not delete untagged parents