Update journald.md (#4368)

This commit is contained in:
Wang Jie 2017-08-29 07:54:47 +08:00 committed by Misty Stanley-Jones
parent 0e1c076c90
commit ad7c384752
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ was set at startup. If you use `docker rename` to rename a container, the new
name **is not reflected** in the journal entries. Journal entries will continue
to use the original name.
## Retrieving log messages with `journalctl`
## Retrieve log messages with `journalctl`
Use the `journalctl` command to retrieve log messages. You can apply filter
expressions to limit the retrieved messages to those associated with a specific
@ -100,7 +100,7 @@ to return the log messages in JSON format.
$ sudo journalctl -o json CONTAINER_NAME=webserver
```
## Retrieving log messages with the `journal` API
## Retrieve log messages with the `journal` API
This example uses the `systemd` Python module to retrieve container
logs: