From b35513512b38ff52553a7c7e1051e5be59b7c28c Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Sun, 25 Oct 2020 20:12:47 +0000 Subject: [PATCH] feat(shell): add docker ls -a alias `dkls` This lists all container on the system event stopped ones. This is different to `dkps` that only displays running container. Some times it is helpfully to display stopped container for getting the id and viewing logs when debugging crashing containers --- site-modules/core/files/oh-my-zsh/custom/docker.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/site-modules/core/files/oh-my-zsh/custom/docker.zsh b/site-modules/core/files/oh-my-zsh/custom/docker.zsh index eb40478..47915f8 100644 --- a/site-modules/core/files/oh-my-zsh/custom/docker.zsh +++ b/site-modules/core/files/oh-my-zsh/custom/docker.zsh @@ -4,6 +4,7 @@ alias dk="docker" alias dkl="docker logs -f" alias dkps="docker ps --format '{{.ID}} ~ {{.Names}} ~ {{.Status}} ~ {{.Image}}' | column -t -s'~'" +alias dkls="docker container ps -a --format '{{.ID}} ~ {{.Names}} ~ {{.Status}} ~ {{.Image}}' | column -t -s'~'" alias dkrm="docker rm" function dke() {