Last active
January 23, 2017 08:50
-
-
Save dsuket/4a38292828bfa776c14aeb0d229cb8de to your computer and use it in GitHub Desktop.
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
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