From 8c8fb03f159142e953fba5457b483d0550c6e0e5 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 28 Sep 2020 13:58:40 +0200 Subject: [PATCH] docs: fix "docker logs" example missing container name Thanks to rvsasseen for spotting this, and Maximillian Xavier for the initial pull request. Signed-off-by: Sebastiaan van Stijn (cherry picked from commit bcb2a4c925247617a8c83280e75c780ea5e71aba) Signed-off-by: Sebastiaan van Stijn --- docs/reference/commandline/logs.md | 2 +- man/src/container/logs.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/commandline/logs.md b/docs/reference/commandline/logs.md index 76502989e1..b7fb87dc86 100644 --- a/docs/reference/commandline/logs.md +++ b/docs/reference/commandline/logs.md @@ -71,7 +71,7 @@ In order to retrieve logs before a specific point in time, run: $ docker run --name test -d busybox sh -c "while true; do $(echo date); sleep 1; done" $ date Tue 14 Nov 2017 16:40:00 CET -$ docker logs -f --until=2s +$ docker logs -f --until=2s test Tue 14 Nov 2017 16:40:00 CET Tue 14 Nov 2017 16:40:01 CET Tue 14 Nov 2017 16:40:02 CET diff --git a/man/src/container/logs.md b/man/src/container/logs.md index f2b4ad6d2d..662b5d5340 100644 --- a/man/src/container/logs.md +++ b/man/src/container/logs.md @@ -33,7 +33,7 @@ In order to retrieve logs before a specific point in time, run: $ docker run --name test -d busybox sh -c "while true; do $(echo date); sleep 1; done" $ date Tue 14 Nov 2017 16:40:00 CET -$ docker logs -f --until=2s +$ docker logs -f --until=2s test Tue 14 Nov 2017 16:40:00 CET Tue 14 Nov 2017 16:40:01 CET Tue 14 Nov 2017 16:40:02 CET