From 99e71150398b6ac1a115cf7fb438e142556a0709 Mon Sep 17 00:00:00 2001 From: Brad Date: Sun, 28 Jan 2024 13:49:24 -0500 Subject: [PATCH] added doctime for container uptimes --- .bash_aliases | 1 + 1 file changed, 1 insertion(+) diff --git a/.bash_aliases b/.bash_aliases index a40e742..5be562b 100755 --- a/.bash_aliases +++ b/.bash_aliases @@ -124,6 +124,7 @@ alias bin='nc termbin.com 9999' alias dex='docker exec' alias dps="docker ps --format 'CONTAINER ID: {{.ID}}\nIMAGE: {{.Image}}\nCOMMAND: {{.Command}}\nCREATED: {{.CreatedAt}}\nSTATUS: {{.Status}}\nPORTS: {{.Ports}}\nNAMES: {{.Names}}\n'|cat" alias lzd='docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v ~/lzd:/.config/jesseduffield/lazydocker lazyteam/lazydocker' +alias doctime='docker ps --format 'CONTAINER NAME: {{.Names}}\nUPTIME: {{.RunningFor}}'|cat' alias glance='docker run --rm -e TZ="${TZ}" -v /var/run/docker.sock:/var/run/docker.sock:ro -v /run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock:ro --pid host --network host -it nicolargo/glances:latest-full' alias ytdlp='docker run --rm -v "/nasty/ytdl:/media" -it jauderho/yt-dlp:latest ' # Misc