docker compose logs

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

描述

显示服务的日志输出

选项

选项默认值描述
-f, --follow跟踪日志输出
--index如果服务有多个副本,则为容器的索引
--no-color生成单色输出
--no-log-prefix不在日志中打印前缀
--since显示自指定时间戳(例如 2013-01-02T13:23:37Z)或相对时间(例如 42m 表示 42 分钟)以来的日志
-n, --tail全部为每个容器显示日志末尾的行数
-t, --timestamps显示时间戳
--until显示指定时间戳(例如 2013-01-02T13:23:37Z)或相对时间(例如 42m 表示 42 分钟)之前的日志
© . This site is unofficial and not affiliated with Kubernetes or Docker Inc.