Created
October 31, 2018 11:31
-
-
Save gadiener/a09ffc4c6f52751dce1f5e474bc5a80d to your computer and use it in GitHub Desktop.
Docker helpers for local env
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
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