5.12 Defining the Logging Driver

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.