Skip to content

Instantly share code, notes, and snippets.

@gadiener
Created October 31, 2018 11:31
Show Gist options
  • Save gadiener/a09ffc4c6f52751dce1f5e474bc5a80d to your computer and use it in GitHub Desktop.
Save gadiener/a09ffc4c6f52751dce1f5e474bc5a80d to your computer and use it in GitHub Desktop.
Docker helpers for local env
dkill() {
# Kill all running containers
docker ps -q | xargs docker kill
}
dprune() {
# Prune unused objects
docker system prune --all --force
}
drm() {
# Remove everything in docker (including volumes)
docker stop $(docker container ls -a -q) &&
docker system prune -a -f &&
docker-machine create --driver virtualbox --virtualbox-disk-size "40000" default
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment