Add --since argument to docker logs cmd
Added --since argument to `docker logs` command. Accept unix timestamps and shows logs only created after the specified date. Default value is 0 and passing default value or not specifying the value in the request causes parameter to be ignored (behavior prior to this change). Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
This commit is contained in:
committed by
Tibor Vass
parent
4edc51e283
commit
a92995bc14
@@ -1632,6 +1632,7 @@ For example:
|
||||
Fetch the logs of a container
|
||||
|
||||
-f, --follow=false Follow log output
|
||||
--since="" Show logs since timestamp
|
||||
-t, --timestamps=false Show timestamps
|
||||
--tail="all" Number of lines to show from the end of the logs
|
||||
|
||||
@@ -1651,6 +1652,10 @@ timestamp, for example `2014-09-16T06:17:46.000000000Z`, to each
|
||||
log entry. To ensure that the timestamps for are aligned the
|
||||
nano-second part of the timestamp will be padded with zero when necessary.
|
||||
|
||||
The `--since` option shows logs of a container generated only after
|
||||
the given date, specified as RFC 3339 or UNIX timestamp. The `--since` option
|
||||
can be combined with the `--follow` and `--tail` options.
|
||||
|
||||
## pause
|
||||
|
||||
Usage: docker pause CONTAINER [CONTAINER...]
|
||||
|
||||
Reference in New Issue
Block a user