↑ ↓ select, Enter open, Esc close

Follow the logs of all services in a Compose stack

Adjust the values, the command updates live
root@server
docker compose -f /opt/app/compose.yaml logs -f --tail 100

Merges the output of all services into one stream, with each line starting with the container name. This lets you follow how, for example, web server, application and database interact. A service name at the end, for example db, limits the output to that service.

Note: --tail applies per service, not in total. Docker commands require root or the docker group.

Also searched as

  • docker compose logs follow
  • show logs of all compose services
  • docker compose logs tail

Related one-liners

All in Docker

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.