Skip to content

Instantly share code, notes, and snippets.

View treystout's full-sized avatar

Trey Stout treystout

  • Incyte Studios, LLC
  • OKC, OK
View GitHub Profile
@fordhurley
fordhurley / docker-clean
Last active August 29, 2015 14:19
Clean up your boot2docker VM
#!/bin/bash
remove_exited_containers() {
docker ps -a -q | xargs -n 1 -I {} docker rm {}
}
remove_untagged_images() {
docker rmi $(docker images --filter dangling=true -q)
}