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] CONTAINERIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
docker logsdocker service logsConfigure logging driversSTDOUTSTDERR