Created
January 20, 2017 00:53
-
-
Save walmsles/a0dc2808b24a47fb47ca413b59f65825 to your computer and use it in GitHub Desktop.
Docker shell alias commands .... since I am lazy
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
# Docker environment | |
function dbash() | |
{ | |
docker exec -it $1 bash | |
} | |
alias dockbuild='docker build . -f $1 -t $2' | |
alias dex='docker exec -it ' | |
alias dps='docker ps ' | |
alias dup='docker-compose up -d' | |
alias drm='docker rm -f' | |
alias ddown='docker-compose stop&&docker-compose rm -f' | |
alias dbounce='ddown && dup' | |
alias dim='docker images' | |
alias dimrm='docker rmi -f' | |
alias dstop='docker stop' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment