Created
July 5, 2016 12:51
-
-
Save patrickpierson/8f0cfd4b6de58bd38b767005d6dbedc0 to your computer and use it in GitHub Desktop.
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
# cqlsh to vpc internal ip | |
cqlsh $(curl -s http://169.254.169.254/latest/meta-data/local-ipv4) | |
# remove exited containers | |
docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs docker rm | |
# remove images marked with <none> | |
docker rmi $(docker images | grep "^<none>" | awk "{print $3}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment