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?

  • fedora 24 run docker 32-bit image
  • Downloading file from S3 using boto3 inside Docker fails
  • How to prevent nodes from restarting in a Kubernetes Deployment
  • Setting $PATH in docker image?
  • Docker compose doesn't recognize 'env_file'
  • What if I change a Dockerfile while a build is running out of it?
  • Connect to a docker mongo instance from remote server
  • docker: how to do/setup networking container-to-host for udp / snmp
  • No /var/run/docker.sock on OS X
  • 'Unable to revive connection’ errors when running ES in Docker container network
  • Boot2Docker: Connect to container over LAN
  • Exposing spring boot random server port using docker
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.