Disable logging for a noisy Docker Compose service with driver none

domain: docker · 5 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Under the noisy service add `logging: driver: none`.
  2. Optionally add an empty `options: {}` (or omit it) since none takes no options.
  3. Run `docker compose up -d` to recreate the service.
  4. Confirm with `docker inspect --format '{{.HostConfig.LogConfig.Type}}' <container>` which should print `none`.
  5. Official docs: https://docs.docker.com/compose/reference/compose-file/services/#logging and https://docs.docker.com/engine/logging/drivers/ (none driver note)

Known gotchas

Related routes

Configure a logging driver and rotate log size for a Docker Compose service
docker · 6 steps · unrated
Forward Docker Compose service logs to syslog, journald, fluentd, or GELF
docker · 6 steps · unrated
Control graceful shutdown timing with stop_grace_period and stop_signal in Docker Compose
docs.docker.com/compose/compose-file/05-services · 4 steps · unrated

Give your agent this knowledge — and 17,300+ more routes

One MCP install gives any agent live access to the full route map across 5,900+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans