Created
April 22, 2018 04:06
-
-
Save BretFisher/e2025e0e5458ac4295474769d6feac8c to your computer and use it in GitHub Desktop.
Docker Alias common stuff, mostly from oh-my-zsh
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
dcb='docker-compose build' | |
dcdn='docker-compose down' | |
dce='docker-compose exec' | |
dcl='docker-compose logs' | |
dclf='docker-compose logs -f' | |
dco=docker-compose | |
dcps='docker-compose ps' | |
dcr='docker-compose run' | |
dcrestart='docker-compose restart' | |
dcrm='docker-compose rm' | |
dcstop='docker-compose stop' | |
dcup='docker-compose up' | |
dm=docker-machine | |
dmls='docker-machine ls' | |
dmnode1='eval "$(docker-machine env node1)"' | |
dockertty='TERM=xterm-256color screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty' | |
dprune='docker kill $(docker ps -a -q) && docker system prune -f' | |
drip='docker inspect --format="{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}"' | |
drit='docker exec -it' | |
drma='docker rm $(docker ps -a -q)' | |
drmai='docker rmi $(docker images -q)' | |
dwipe='docker kill $(docker ps -a -q) && docker system prune -af' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ugg legacy in there. I should replace the
dockertty
with Justin and Jerome's nsenter image:dockertty='docker run -it --rm --privileged --pid=host justincormack/nsenter1'