From 203b6b39e1aeaa80ee10dd0aae8825510e32be27 Mon Sep 17 00:00:00 2001 From: Henry Mai <88569156+tanducmai@users.noreply.github.com> Date: Sat, 24 Jun 2023 16:46:54 +0930 Subject: [PATCH] `docker kill` does not have `-f` option $ docker kill --help ``` Usage: docker kill [OPTIONS] CONTAINER [CONTAINER...] Kill one or more running containers Aliases: docker container kill, docker kill Options: -s, --signal string Signal to send to the container ``` --- zsh/aliases.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index cacd872..2788f33 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -106,7 +106,7 @@ if [ -f "$JOBFILE" ]; then fi dclear () { - docker ps -a -q | xargs docker kill -f + docker ps -a -q | xargs docker kill docker ps -a -q | xargs docker rm -f docker images | grep "api\|none" | awk '{print $3}' | xargs docker rmi -f docker volume prune -f