Created
March 9, 2017 00:48
-
-
Save RyanHirsch/bb96997f99531cd0c09bd18d67c8d90a to your computer and use it in GitHub Desktop.
Clean up old docker containers
This file contains hidden or 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
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /etc:/etc spotify/docker-gc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Creating a file
/etc/docker-gc-exclude-containers
will allow certain containers to be preservedhttps://github.com/spotify/docker-gc#running-as-a-docker-container