docker logs

Estimated reading time: 1 minute

Description

Fetch the logs of a container

Usage

docker logs [OPTIONS] CONTAINER

Options

Name, shorthand Default Description
--details false Show extra details provided to logs
--follow, -f false Follow log output
--since   Show logs since timestamp (e.g. 2013-01-02T13:23:37) or relative (e.g. 42m for 42 minutes)
--tail all Number of lines to show from the end of the logs
--timestamps, -t false Show timestamps

Parent command

Command Description
docker The base command for the Docker CLI.

Extended description

Alias for docker container logs.

chat icon Feedback? Suggestions? Can't find something in the docs?
Edit this page Request docs changes Get support
Rate this page: