From aa77505b67f758e26b8e47db948091cc13c2d1e3 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 21 Nov 2018 14:00:09 +0100 Subject: [PATCH] Use --format to get active logging driver This approach works on all platforms, and reduces the dependency on external tools (`grep` in this case). Signed-off-by: Sebastiaan van Stijn --- config/containers/logging/configure.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/containers/logging/configure.md b/config/containers/logging/configure.md index 8dc0a16cd0..301a200c96 100644 --- a/config/containers/logging/configure.md +++ b/config/containers/logging/configure.md @@ -55,12 +55,12 @@ the default output for commands such as `docker inspect ` is JSON. To find the current default logging driver for the Docker daemon, run `docker info` and search for `Logging Driver`. You can use the following -command on Linux, macOS, or PowerShell on Windows: +command: ```bash -$ docker info | grep 'Logging Driver' +$ docker info --format '{{.LoggingDriver}}' -Logging Driver: json-file +json-file ``` ## Configure the logging driver for a container