The software described in this documentation is either no longer supported or is in extended support.
Oracle recommends that you upgrade to a current supported release.

4.11 Defining the Logging Driver

From version 1.6.0 of Docker, you can use the --log-driver option with the docker create and docker run commands to specify the logging driver that a container should use:


Write log messages to a JSON file that you can examine by using the docker logs command, for example:

$ docker logs --follow --timestamps=false container_name

This is the default logging driver.


Disable logging.


Write log messages to syslog.