Adam K Dean

Remove all exited containers

Published on 27 May 2015 at 17:03 by Adam

This removes all exited containers.

docker ps -a | grep 'Exited' | awk '{print $1}' | xargs --no-run-if-empty docker rm

Use with care as it will also removed Data Volume Containers.



This post was first published on 27 May 2015 at 17:03. It was filed under archive with tags docker, linux.