From 3b783196538b84e3c6440258c2d52a2540827473 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Mon, 4 Jan 2021 15:38:34 +0000 Subject: [PATCH] aliases: limit dlg to last 1000 lines This prevents the sometimes lengthy waits whilst Docker spools months or years of container logs into the shell scrollback, shortly to be discarded. It's rare that more than the most 1000 recent lines will be required, and those should probably use more specific cli invocations. Signed-off-by: Joe Groocock --- aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aliases b/aliases index c01216a..1bbb45c 100644 --- a/aliases +++ b/aliases @@ -211,7 +211,7 @@ alias dst='docker stop' alias drst='docker restart' alias dnet='docker network' alias dvol='docker volume' -alias dlg='docker logs -f' +alias dlg='docker logs --tail=1000 -f' alias dalpine='docker run -ti --rm spritsail/alpine /bin/sh' alias drm-stopped='docker container prune' alias drmi-untag='docker image prune'