Skip to content

Instantly share code, notes, and snippets.

@patrickpierson
Created July 5, 2016 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickpierson/8f0cfd4b6de58bd38b767005d6dbedc0 to your computer and use it in GitHub Desktop.
Save patrickpierson/8f0cfd4b6de58bd38b767005d6dbedc0 to your computer and use it in GitHub Desktop.
# 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