Skip to content
Container lifecycleDocker

docker logs

Tail or inspect container stdout/stderr output.

Command
docker logs --follow

Example usage

Stream live logs or fetch the latest output from a container.

docker logs --follow <container_name>
docker logs --tail 100 <container_name>

Related tags

Container lifecyclecontainersimagescompose