From 9606cc70a6c24afe1c4e9639bee1a39626809ae8 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 22 Feb 2018 19:16:08 -0500 Subject: [PATCH] misc/docker: add dkl, dkcl, dkclr, & dke aliases --- misc/docker/aliases.zsh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/misc/docker/aliases.zsh b/misc/docker/aliases.zsh index 44e8b859..3fbeb563 100644 --- a/misc/docker/aliases.zsh +++ b/misc/docker/aliases.zsh @@ -3,6 +3,17 @@ alias docker-compose='sudo docker-compose' alias dkc=docker-compose 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() { case $(_os) in