mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-04 07:48:44 +00:00
Implement tail for docker logs
Fixes #4330 Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: LK4D4)
This commit is contained in:
@@ -306,7 +306,7 @@ Get stdout and stderr logs from the container ``id``
|
||||
|
||||
**Example request**:
|
||||
|
||||
GET /containers/4fa6e0f0c678/logs?stderr=1&stdout=1×tamps=1&follow=1 HTTP/1.1
|
||||
GET /containers/4fa6e0f0c678/logs?stderr=1&stdout=1×tamps=1&follow=1&tail=10 HTTP/1.1
|
||||
|
||||
**Example response**:
|
||||
|
||||
@@ -319,14 +319,12 @@ Get stdout and stderr logs from the container ``id``
|
||||
|
||||
|
||||
|
||||
- **follow** – 1/True/true or 0/False/false, return stream.
|
||||
Default false
|
||||
- **stdout** – 1/True/true or 0/False/false, if logs=true, return
|
||||
stdout log. Default false
|
||||
- **stderr** – 1/True/true or 0/False/false, if logs=true, return
|
||||
stderr log. Default false
|
||||
- **timestamps** – 1/True/true or 0/False/false, if logs=true, print
|
||||
timestamps for every log line. Default false
|
||||
- **follow** – 1/True/true or 0/False/false, return stream. Default false
|
||||
- **stdout** – 1/True/true or 0/False/false, show stdout log. Default false
|
||||
- **stderr** – 1/True/true or 0/False/false, show stderr log. Default false
|
||||
- **timestamps** – 1/True/true or 0/False/false, print timestamps for
|
||||
every log line. Default false
|
||||
- **tail** – Output specified number of lines at the end of logs: `all` or `<number>`. Default all
|
||||
|
||||
Status Codes:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user