Skip to content

Instantly share code, notes, and snippets.

@RyanHirsch
Created March 9, 2017 00:48
Show Gist options
  • Save RyanHirsch/bb96997f99531cd0c09bd18d67c8d90a to your computer and use it in GitHub Desktop.
Save RyanHirsch/bb96997f99531cd0c09bd18d67c8d90a to your computer and use it in GitHub Desktop.
Clean up old docker containers
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /etc:/etc spotify/docker-gc
@RyanHirsch
Copy link
Author

Creating a file /etc/docker-gc-exclude-containers will allow certain containers to be preserved

https://github.com/spotify/docker-gc#running-as-a-docker-container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment