How to delete Docker cache.md 513 B


Title: "How to delete Docker cache?" Date: 2016-12-10 13:00:00 Categories: [devops] tags: [docker]

Author: sedlav

Q. How to delete Docker cache?

A. Last time I checked, there wasn't a specific docker command for this

I use a few useful alias:

alias docker_clean_images='docker rmi $(docker images -a --filter=dangling=true -q)'
alias docker_clean_ps='docker rm $(docker ps --filter=status=exited --filter=status=created -q)'

Link