Created
August 12, 2014 08:33
-
-
Save michaloo/89c56c256e8f1ae58e00 to your computer and use it in GitHub Desktop.
Remove orphaned docker containers directories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /var/lib/docker/containers/ && ls . | grep -vE "($(docker ps -aq | paste -sd "|"))" | xargs rm -r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment