Back to Compose

docker compose logs

docs/reference/compose_logs.md

5.1.31.7 KB
Original Source

docker compose logs

<!---MARKER_GEN_START-->

Displays log output from services

Options

NameTypeDefaultDescription
--dry-runboolExecute command in dry run mode
-f, --followboolFollow log output
--indexint0index of the container if service has multiple replicas
--no-colorboolProduce monochrome output
--no-log-prefixboolDon't print prefix in logs
--sincestringShow logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)
-n, --tailstringallNumber of lines to show from the end of the logs for each container
-t, --timestampsboolShow timestamps
--untilstringShow logs before a timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)
<!---MARKER_GEN_END-->

Description

Displays log output from services