When you start a docker container, you can configure it to use a different logging driver than the Docker daemon’s default logging driver( json-file), using the --log-driver flag.Even if the container uses the default logging driver, it can use different configurable options.Say Suppose you want your docker container to use logging driver "gcplogs" instead of the default, you can do it by using the following command:
$ docker run -it --log-driver gcplogs alpine ash
Similarly you could configure it to use any other logging driver like splunk, local, syslog or you can make it none in case you don't need logs for a particular docker container.