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 <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2020-09-28 13:58:40 +02:00
parent 6c6817f34e
commit bcb2a4c925
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
2 changed files with 2 additions and 2 deletions

View File

@ -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" $ docker run --name test -d busybox sh -c "while true; do $(echo date); sleep 1; done"
$ date $ date
Tue 14 Nov 2017 16:40:00 CET 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:00 CET
Tue 14 Nov 2017 16:40:01 CET Tue 14 Nov 2017 16:40:01 CET
Tue 14 Nov 2017 16:40:02 CET Tue 14 Nov 2017 16:40:02 CET

View File

@ -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" $ docker run --name test -d busybox sh -c "while true; do $(echo date); sleep 1; done"
$ date $ date
Tue 14 Nov 2017 16:40:00 CET 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:00 CET
Tue 14 Nov 2017 16:40:01 CET Tue 14 Nov 2017 16:40:01 CET
Tue 14 Nov 2017 16:40:02 CET Tue 14 Nov 2017 16:40:02 CET