fix: README

fix chapter logs by container id
This commit is contained in:
Markus Pesch 2020-11-21 10:34:03 +01:00
parent 09898e8730
commit d9bbed2017
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
1 changed files with 12 additions and 3 deletions

View File

@ -54,9 +54,18 @@ The flag `--n, --name` can be used multiple times to select multiple containers.
### Logs by container id
The behaviour of `-i, --id` is similar to `-n, --name`. It can be specified
multiple times. It selects by the ID of the container instead of by name. The ID
does not need to be specified fully qualified. The first characters of the ID
are sufficient.
multiple times. It selects the container by thir ID instead of their name. The
ID does not need to be specified by their full length. The first characters of
the ID are sufficient.
For example to select the container oracle.
```bash
$ container-logs --id 9d0bb88fa6a1
[0.000] 127.0.0.1 - - [20/Nov/2020:18:57:16 +0000] "HEAD /index.html HTTP/1.1" 200 0 "-" "curl/7.29.0" "-"
[0.000] 127.0.0.1 - - [20/Nov/2020:18:57:56 +0000] "HEAD /index.html HTTP/1.1" 200 0 "-" "curl/7.29.0" "-"
[0.000] 127.0.0.1 - - [20/Nov/2020:18:58:37 +0000] "HEAD /index.html HTTP/1.1" 200 0 "-" "curl/7.29.0" "-"
```
### Logs by container labels