Remove unused docker images, containers, volumes

# REMOVE UNUSED CONTAINERS docker rm $(docker ps -a -q -f 'status=exited') # REMOVE UNUSED IMAGES docker rmi $(docker images -a -q -f "dangling=true") # REMOVE UNUSED VOLUMES docker volume rm $(docker volume ls -qf dangling=true) # OR JUST ONE COMMAND FOR ALL docker system prune -a

3 Responses

Great!!!
Cool!
Great!!

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.