From f6c6f53121c79874264e134c73d35b07008e93d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20VANTOMME?= Date: Wed, 28 Nov 2018 11:16:11 +0100 Subject: [PATCH] Feat: fetch and follow the logs of a container --- modules/docker/README.md | 3 +++ modules/docker/alias.zsh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/modules/docker/README.md b/modules/docker/README.md index 4c655f96..4faa8411 100644 --- a/modules/docker/README.md +++ b/modules/docker/README.md @@ -19,6 +19,7 @@ Defines [Docker][1] aliases and functions. - `dkk` Kill a running container - `dkkh` Send `kill -s HUP` signal to a running container - `dkl` Fetch the logs of a container +- `dkL` Fetch and follow (`-f`) the logs of a container - `dkli` Log in to a Docker registry - `dklo` Log out from a Docker registry - `dkls` is alias for `dkps` @@ -59,6 +60,7 @@ Defines [Docker][1] aliases and functions. - `dkCin` Display detailed information on one or more containers - `dkCk` Kill one or more running containers - `dkCl` Fetch the logs of a container +- `dkCL` Fetch and follow (`-f`) the logs of a container - `dkCls` List containers - `dkCp` Pause all processes within one or more containers - `dkCpr` Remove all stopped containers @@ -159,6 +161,7 @@ Defines [Docker][1] aliases and functions. - `dkce` Execute a command in a running container - `dkck` Kill containers - `dkcl` View output from containers +- `dkcL` View and follow (`-f`) output from containers - `dkcls` is alias for `dkcps` - `dkcp` Pause services - `dkcP` Unpause services diff --git a/modules/docker/alias.zsh b/modules/docker/alias.zsh index 69c0054d..e712feae 100644 --- a/modules/docker/alias.zsh +++ b/modules/docker/alias.zsh @@ -24,6 +24,7 @@ alias dkim='docker import' alias dkk='docker kill' alias dkkh='docker kill -s HUP' alias dkl='docker logs' +alias dkL='docker logs -f' alias dkli='docker login' alias dklo='docker logout' alias dkls='docker ps' @@ -61,6 +62,7 @@ alias dkCe='docker container exec' alias dkCin='docker container inspect' alias dkCk='docker container kill' alias dkCl='docker container logs' +alias dkCL='docker container logs -f' alias dkCls='docker container ls' alias dkCp='docker container pause' alias dkCpr='docker container prune' @@ -160,6 +162,7 @@ alias dkcd='docker-compose down' alias dkce='docker-compose exec' alias dkck='docker-compose kill' alias dkcl='docker-compose logs' +alias dkcL='docker-compose logs -f' alias dkcls='docker-compose ps' alias dkcp='docker-compose pause' alias dkcP='docker-compose unpause'