stream_container_logs
Retrieve stdout and stderr logs from a Docker container for debugging. Filter by time, keyword, or number of recent lines.
Instructions
Fetch stdout/stderr logs from a Docker container by ID or name.
Args:
container_id: Container ID or name.
tail: Number of lines to fetch from the end of the logs.
since: Optional ISO 8601 timestamp; only return logs after this time.
filter_keyword: Optional substring; only return lines containing it.
Returns:
dict with container_id, log_lines, line_count, truncated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container_id | Yes | ||
| tail | No | ||
| since | No | ||
| filter_keyword | No |