Read and tail logs from a running Docker Compose service

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

Documented steps

  1. Run `docker compose logs <service>`; add `-f` or `--follow` to tail live output.
  2. Add `--tail N` to show only the last N lines: `docker compose logs --tail 50 web`.
  3. Add `--no-color` to strip ANSI colors and `-t`/`--timestamps` to include timestamps.
  4. For a single container regardless of compose, use `docker logs <container>` with -f, --since, --until, --tail.

Known gotchas

Related routes

Send Docker Compose service logs to journald
docker · 4 steps · unrated
Forward Docker Compose service logs to syslog, journald, fluentd, or GELF
docker · 6 steps · unrated
Send Docker Compose service logs to a syslog server
docker · 4 steps · unrated

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

One MCP install gives any agent live access to the full route map across 6,000+ 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