Created
May 10, 2016 14:16
-
-
Save rawkode/709218b3a67d783d8fd044409e6212be to your computer and use it in GitHub Desktop.
Cleanup Docker Containers
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
#!/usr/bin/env bash# | |
## | |
# Clean up old preview environments each night at 10pm | |
## | |
docker rm -f $(docker ps -aq) | |
docker network rm $(docker network ls -q) | |
docker volume rm $(docker volume ls -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment