1
0
mirror of https://github.com/docker/cli.git synced 2026-01-13 18:22:35 +03:00

Fail docker logs on all logging drivers apart from 'json-file'

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
Alexander Morozov
2015-02-05 16:24:47 -08:00
committed by Tibor Vass
parent 1459501312
commit e30532cf3f
2 changed files with 8 additions and 3 deletions

View File

@@ -1449,6 +1449,9 @@ For example:
-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` logging
driver.
The `docker logs` command batch-retrieves logs present at the time of execution.
The `docker logs --follow` command will continue streaming the new output from

View File

@@ -646,13 +646,15 @@ familiar with using LXC directly.
You can specify a different logging driver for the container than for the daemon.
### Log driver: none
### Logging driver: none
Disables any logging for the container.
Disables any logging for the container. `docker logs` won't be available with
this driver.
### Log driver: json-file
Default logging driver for Docker. Writes JSON messages to file.
Default logging driver for Docker. Writes JSON messages to file. `docker logs`
command is available only for this logging driver
## Overriding Dockerfile image defaults