Docker Community Forums

Share and learn in the Docker community.

Is there a way to change the default logging driver for all containers?

Having setup an ELK stack I know I can route logs from my containers to it, and have done so for a few containers, but I have many to do, and I dont want to manage all of this in this manner. Instead I am looking for a way to globally define the default logger to be a driver (gelf or syslogd) pointing to the ELK stack.

How do I achieve this on the following platforms (by priority) for engine 1.12.5? Linux (Ubuntu), Windows and MacOS?