在线文档教程
Docker 17
撰写 | Compose

docker-compose logs

docker-compose logs

Usage: logs [options] [SERVICE...] Options: --no-color Produce monochrome output. -f, --follow Follow log output -t, --timestamps Show timestamps --tail="all" Number of lines to show from the end of the logs for each container.

显示服务的日志输出。

fig, composition, compose, docker, orchestration, cli, logs