Quick Actions
docker logs
Description
Fetch the logs of a container.
Command
docker logs
Examples
View container logs
docker logs my-container
Follow logs in real-time
docker logs -f my-container
Show last 100 lines
docker logs --tail 100 my-container
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
-f |
string | No | Follow log output |
--tail |
string | No | Number of lines to show from the end of the logs |
-t |
string | No | Show timestamps |
Command Info
Category:
Monitoring
Type:
Docker
Views:
12
Status:
Active
Tags
container
logs
output