Follow recent service logs.
docker compose logs -f --tail 100Follow recent service logs.
docker compose logs -f --tail 100Follow recent service logs.
docker compose logs -f --tail 100| Option / clause | Description |
|---|---|
-f, --follow | Continue streaming new log output. |
--tail <n|all> | Show the last n lines, or all available lines. |
--since <duration> | Show logs since a time or relative duration. |
--timestamps | Add timestamps to log lines. |
[service...] | Limit output to selected Compose services. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.