Skip to content

Instantly share code, notes, and snippets.

@dsuket
Last active January 23, 2017 08:50
Show Gist options
  • Save dsuket/4a38292828bfa776c14aeb0d229cb8de to your computer and use it in GitHub Desktop.
Save dsuket/4a38292828bfa776c14aeb0d229cb8de to your computer and use it in GitHub Desktop.
alias dps='docker ps -a'
alias dl='docker ps -l -q'
alias di='docker images'
alias drun='docker run -it --rm'
alias dstop='docker stop $(dl)'
alias dstopa='docker stop $(docker ps -a -q)'
alias drm='docker rm'
alias drmi='docker rmi'
alias drma='docker rm $(docker ps -a -q)'
alias drmia='docker rmi $(docker images -q)'
# remove images no tagged
alias drmin='docker rmi $(docker images -f "dangling=true" -q)'
alias drmva='docker volume ls -f "dangling=true" -q | xargs docker volume rm'
alias dexec='docker exec -it `dl`'
dalias() { alias | grep 'docker' | sed "s/^\([^=]*\)='\(.*\)'/\1 => \2/"| sed "s/'\\\'//g"; }
dbu() { docker build -t=$1 .; }
alias dc="docker-compose"
alias ecr-login='$(aws ecr get-login --region ap-northeast-1)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment