diff --git a/zshrc b/zshrc index 0dcad60..91817de 100644 --- a/zshrc +++ b/zshrc @@ -46,3 +46,6 @@ dalias() { alias | grep 'docker' | sed "s/^\([^=]*\)=\(.*\)/\1 => \2/"| sed "s/[ # Bash into running container dbash() { docker exec -it $(docker ps -aqf "name=$1") bash; } + +# Remove all exited containers +alias drmsc='docker rm -v $(docker ps -a -q -f status=exited)'