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. The following options are supported:
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 journald . |
gelf | Graylog Extended Log Format (GELF) logging driver for Docker. Writes log messages to a GELF endpoint likeGra
|