DOCKER-COMPOSE-LOGS(1)

πŸ“¦ version 2.26.1, in debian trixie

✨ docker-compose-logs ✨

ok so bestie, welcome to the manual page for docker-compose-logs πŸ’– (that's the docker compose logs command, in case the hyphen situation was confusing you, it confused me too, we move on)


🌸 NAME 🌸

docker-compose-logs β€” View output from containers πŸ‘€βœ¨

like. the logs. from your containers. we're reading them. that's the whole vibe.


πŸŽ€ SYNOPSIS πŸŽ€

docker compose logs [OPTIONS] [SERVICE...]

πŸ¦‹ DESCRIPTION πŸ¦‹

Displays log output from services πŸ’…

that's it. that's the description. short and iconic, she ate and left no crumbs.


πŸ’… OPTIONS πŸ’…

okay this is the part you actually came for, no skipping, I know you were gonna skip, don't. every single one is here 🫢

  • -f, --follow[=false] β€” Follow log output. like, it keeps going and going and going instead of just dumping what's there and dipping. main character energy fr πŸ”₯
  • -h, --help[=false] β€” help for logs πŸ₯Ί (it literally just helps you, bestie)
  • --index=0 β€” index of the container if service has multiple replicas πŸ‘‘ if your service is out here with a whole friend group of copies, this is how you point at one specific one
  • --no-color[=false] β€” Produce monochrome output πŸ’€ no rainbow, just grey. for when you're piping stuff somewhere that can't handle the aesthetic
  • --no-log-prefix[=false] β€” Don't print prefix in logs πŸ™ˆ strips off the little "which service is this even from" label at the start of each line
  • --since="" β€” Show logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes) ⏰ give me the lore starting from here
  • -n, --tail="all" β€” Number of lines to show from the end of the logs for each container 🌈 the default is literally "all", so she's generous
  • -t, --timestamps[=false] β€” Show timestamps ✨ little time stamps on every line so you know when the chaos happened
  • --until="" β€” Show logs before a timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes) πŸ•°οΈ the cut-off point, nothing after this, we're done here

🧚 OPTIONS INHERITED FROM PARENT COMMANDS 🧚

yes she got these from her mom (the parent command) πŸ’œ

  • --dry-run[=false] β€” Execute command in dry run mode πŸ‘» do the thing without actually doing the thing. practice run. rehearsal. dress rehearsal energy.

⭐ SEE ALSO ⭐


πŸ’– reminder bestie: options are exactly as written, defaults are exactly as written, don't go renaming anything, the command is not gonna forgive you

okay that's the whole page, you're officially educated, go read some logs, I'm so proud of you πŸŒΈπŸ¦‹πŸŽ€


this little love letter to container output is from the DOCKER-COMPOSE-LOGS(1) manual, dated Mar 2025, and honestly? iconic of her. mwah. πŸ’…

πŸ“¦ where this page comes from