Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Docker Alias common stuff, mostly from oh-my-zsh
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'
@BretFisher

This comment has been minimized.

Copy link
Owner Author

commented Apr 22, 2018

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.