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 apt-get update fails
  • Docker swarm-manager displays old container information
  • Docker-machine access to remote docker daemon through ssh tunneling
  • Accessing docker container over https on Azure subdomain
  • Docker in Docker: docker daemon doesn't start (Failed to connect to containerd)
  • Phabricator git clone error 403
  • Spring Cloud Config Server Won't Serve from Local Filesystem
  • Can Dockerfiles chain from other Dockerfiles?
  • How come mount command is disabled inside a docker container
  • Unable to mount persistent volume to Docker container using Rex-Ray and VirtualBox Media storage - “Invalid managed object reference” error
  • Docker stack “--force-recreate” in swarm mode using compose file
  • resolve internal DNS in linked docker containers
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.