Remove dangling images & container

[sourcecode language=”powershell”]
# Delete all stopped containers
docker rm $( docker ps -q -f status=exited)
# Delete all dangling (unused) images
docker rmi $( docker images -q -f dangling=true)
[/sourcecode]

Leave a Reply

You must be logged in to post a comment.