1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

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 <me@frebib.net>
This commit is contained in:
Joe Groocock 2021-01-04 15:38:34 +00:00
parent dae7f60002
commit 3b78319653
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -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'