Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker remove all images

# Use this to delete everything:
docker system prune -a --volumes

# 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"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #docker #remove #images
ADD COMMENT
Topic
Name
3+1 =