docker-compose-logs(1)

docker-compose-logs1

View output from containers

Usage

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

Overview

Displays log output from services

Options

-f, --follow[=false]
Follow log output

-h, --help[=false]
help for logs

--index=0
index of the container if service has multiple replicas

--no-color[=false]
Produce monochrome output

--no-log-prefix[=false]
Don't print prefix in logs

--since=""
Show logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)

-n, --tail="all"
Number of lines to show from the end of the logs for each container

-t, --timestamps[=false]
Show timestamps

--until=""
Show logs before a timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)

Options inherited from parent commands

--dry-run[=false]
Execute command in dry run mode

From docker-compose 2.26.1-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.