Disable logging on interactive containers

I have dockerd configured via --log-driver to save logs for my daemon containers to syslog. Apparently this causes standard out of all interactive/one-off containers to be written to syslog as well. This is especially troubling when I am doing something like docker run -it --rm imagename mysqldump > filename.sql as the entire database dump is logged.

Is my only option to explicitly specify --log-driver on the command line for each container being run, or are there any better options?

  • docker custom nginx container failed to start
  • Creating a container that runs IBM Containers Extension (ICE)
  • How to write and persist data in a VOLUME of an image FROM which my Dockerfile is based?
  • Docker: Build your own image issue
  • Docker/Boot2Docker: Set HTTP/HTTPS proxies for docker on OS X
  • Can docker use host filesystem instead of an image?
  • Dockerfile: is it necessary to specify which user before perform a RUN?
  • How to copy files from shared directory in multiple Dockerfile?
  • Using TensorFlow in windows
  • Understanding Dockerfile CMD/ENTRYPOINT
  • How do i get postgres data to persist using docker-compose
  • How can I use docker for drupal?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.