mirror of
https://github.com/docker/compose.git
synced 2026-10-12 10:59:50 +00:00
follow-up to 7eeb7de7a2, adding more
links now that the CLI reference for docker logs has anchors for them.
Signed-off-by: Sebastiaan van Stijn <[email protected]>
3.3 KiB
3.3 KiB
docker compose logs
Displays log output from services
Options
| Name | Type | Default | Description |
|---|---|---|---|
--dry-run |
bool |
Execute command in dry run mode | |
-f, --follow |
bool |
Follow log output | |
--index |
int |
0 |
index of the container if service has multiple replicas |
--no-color |
bool |
Produce monochrome output | |
--no-log-prefix |
bool |
Don't print prefix in logs | |
--since |
string |
Show logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes) | |
-n, --tail |
string |
all |
Number of lines to show from the end of the logs for each container |
-t, --timestamps |
bool |
Show timestamps | |
--until |
string |
Show logs before a timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes) |
Description
Displays log output from services