mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Touch up 'docker logs' documentation.
* Update format for 'Note:' to match other pages. * Add link to Go's RFC3339Nano timestamp information. Signed-off-by: Charles Chan <charleswhchan@users.noreply.github.com>
This commit is contained in:
parent
7d5603e7cb
commit
eff524e19c
1 changed files with 4 additions and 4 deletions
|
@ -20,8 +20,8 @@ weight=1
|
|||
-t, --timestamps=false Show timestamps
|
||||
--tail="all" Number of lines to show from the end of the logs
|
||||
|
||||
NOTE: this command is available only for containers with `json-file` and
|
||||
`journald` logging drivers.
|
||||
> **Note**: this command is available only for containers with `json-file` and
|
||||
> `journald` logging drivers.
|
||||
|
||||
The `docker logs` command batch-retrieves logs present at the time of execution.
|
||||
|
||||
|
@ -31,8 +31,8 @@ the container's `STDOUT` and `STDERR`.
|
|||
Passing a negative number or a non-integer to `--tail` is invalid and the
|
||||
value is set to `all` in that case.
|
||||
|
||||
The `docker logs --timestamp` commands will add an RFC3339Nano
|
||||
timestamp, for example `2014-09-16T06:17:46.000000000Z`, to each
|
||||
The `docker logs --timestamp` commands will add an [RFC3339Nano timestamp](https://golang.org/pkg/time/#pkg-constants)
|
||||
, 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.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue