Configuring Logging Drivers (Engine)
Configure logging drivers
The container can have a different logging driver than the Docker daemon. Use the --log-driver=VALUE
with the docker run
command to configure the container’s logging driver. If the --log-driver
option is not set, docker uses the default (json-file
) logging driver. The following options are supported:
Driver | Description |
---|---|
none | Disables any logging for the container. docker logs won’t be available with this driver. |
json-file | Default logging driver for Docker. Writes JSON messages to file. |
syslog | Syslog logging driver for Docker. Writes log messages to syslog. |
journald | Journald logging driver for Docker. Writes log messages to journal
|