Created
September 28, 2016 02:50
-
-
Save reklis/5101544a723e1bf3eb0aedbc6c33aa62 to your computer and use it in GitHub Desktop.
docker shell profile stuff
This file contains hidden or 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
function docker-start() { | |
machine_status=$(docker-machine status) | |
if [ "Stopped" == $machine_status ] | |
then | |
docker-machine start default | |
fi | |
eval "$(docker-machine env default)" | |
} | |
function docker-clean() { | |
docker rm -v $(docker ps -a -q -f status=exited) | |
# docker rmi $(docker images -f "dangling=true" -q) | |
# docker run -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker:/var/lib/docker --rm martin/docker-cleanup-volumes | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment