Docker Compose 日志

描述查看容器的输出
用法docker compose logs [OPTIONS] [SERVICE...]

描述

显示服务的日志输出

选项

选择违约描述
-f, --follow遵循日志输出
--index如果服务有多个副本,则为容器的索引
--no-color生成单色输出
--no-log-prefix不要在日志中打印前缀
--since显示自时间戳(例如 2013-01-02T13:23:37Z)或相对(例如 42m 表示 42 分钟)以来的日志
-n, --tailall每个容器的日志末尾要显示的行数
-t, --timestamps显示时间戳
--until在时间戳(例如 2013-01-02T13:23:37Z)或相对时间戳(例如 42m 表示 42 分钟)之前显示日志