From ff9feca14cd7104f28920c9be32d1c4f610c5cf8 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Sat, 13 Feb 2021 14:46:19 +0000 Subject: [PATCH] aliases: replace dklrm with drmf Recently I learnt that `docker rm -f` both stops and removes the container in one go, without any races. It's much cleaner than the hack from before so replace it outright. Signed-off-by: Joe Groocock --- aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aliases b/aliases index 2d0f78e..29b38f8 100644 --- a/aliases +++ b/aliases @@ -212,7 +212,7 @@ alias dbl='docker build --pull' alias dbl.='docker build --pull .' alias drun='docker run -ti' alias dkl='docker kill' -dklrm() { docker kill $@ ; docker rm $@; } +alias drmf='docker rm -f' alias dst='docker stop' alias drst='docker restart' alias dnet='docker network'