docker_logs
Fetch container logs to monitor application output and debug issues by retrieving log entries with optional filtering by time, line count, and timestamp display.
Instructions
Fetch logs from a container
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container | Yes | Container name or ID | |
| tail | No | Number of lines to show from the end of logs | |
| follow | No | Follow log output (not recommended for MCP) | |
| since | No | Show logs since timestamp (e.g., "2023-01-01T00:00:00") | |
| timestamps | No | Show timestamps | |
| cwd | No | Working directory |
Input Schema (JSON Schema)
{
"properties": {
"container": {
"description": "Container name or ID",
"type": "string"
},
"cwd": {
"description": "Working directory",
"type": "string"
},
"follow": {
"default": false,
"description": "Follow log output (not recommended for MCP)",
"type": "boolean"
},
"since": {
"description": "Show logs since timestamp (e.g., \"2023-01-01T00:00:00\")",
"type": "string"
},
"tail": {
"description": "Number of lines to show from the end of logs",
"type": "number"
},
"timestamps": {
"default": false,
"description": "Show timestamps",
"type": "boolean"
}
},
"required": [
"container"
],
"type": "object"
}