misc/docker: add dkl, dkcl, dkclr, & dke aliases

This commit is contained in:
Henrik Lissner 2018-02-22 19:16:08 -05:00
parent 64aad58d58
commit 9606cc70a6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -3,6 +3,17 @@ alias docker-compose='sudo docker-compose'
alias dkc=docker-compose alias dkc=docker-compose
alias dkm=docker-machine alias dkm=docker-machine
alias dkl='dk logs'
alias dkcl='dkc logs'
dkclr() {
dk stop $(docker ps -a -q)
dk rm $(docker ps -a -q)
}
dke() {
dk exec -it "$1" "${@:1}"
}
dk() { dk() {
case $(_os) in case $(_os) in