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
--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.
chat icon Feedback? Suggestions? Can't find something in the docs?
Edit this page Request docs changes Get support
Rate this page: