Skip to content
masterclass Buddy

Docker · Command

docker logs

Fetch and display a container's logs. You can follow new output, limit lines or time, and add timestamps or extra details.

Last updated

Syntax

docker container logs [OPTIONS] CONTAINER

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • docker logs
  • docker service logs
  • Configure logging drivers
  • STDOUT
  • STDERR

Source: docker container logs. Checked 2026-11-03.