docker
v1.0.1Docker container management and Dockerfile analysis
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
docker_container_list
List Docker containers with status, ports, image, created time, and resource usage. Can show only running containers or all containers including stopped ones.
| Parameter | Type | Description |
|---|---|---|
all | boolean | If true, show all containers including stopped ones. Defaults to false (running only). |
format | string | Output format: 'table' for readable text, 'json' for structured data. Defaults to 'json'. |
docker_image_list
List Docker images with size, tags, created date, and layer count. Optionally filter by repository name.
| Parameter | Type | Description |
|---|---|---|
filter | string | Filter images by repository name (partial match). Leave empty to list all. |
format | string | Output format: 'table' or 'json'. Defaults to 'json'. |
showDangling | boolean | Include dangling (untagged) images. Defaults to false. |
docker_dockerfile_analyze
Analyze a Dockerfile for best practices including multi-stage builds, non-root user, .dockerignore usage, layer caching order, image size optimization, and security.
| Parameter | Type | Description |
|---|---|---|
content * | string | The full content of the Dockerfile to analyze. |
checkDockerignore | boolean | If true, also checks for common .dockerignore recommendations. Defaults to true. |
docker_compose_analyze
Analyze docker-compose.yml: list services, ports, volumes, networks, health checks, dependencies. Suggest improvements.
| Parameter | Type | Description |
|---|---|---|
content * | string | The full content of the docker-compose.yml to analyze. |
docker_container_logs
Get logs from a Docker container. Supports retrieving the last N lines, filtering by keyword, and including timestamps.
| Parameter | Type | Description |
|---|---|---|
container * | string | Container name or ID to get logs from. |
filter | string | Filter log lines to only include those containing this keyword (case-insensitive). |
since | string | Show logs since a timestamp (e.g., '2024-01-01T00:00:00') or relative duration (e.g., '1h', '30m'). |
tail | number | Number of lines to retrieve from the end of logs. Defaults to 100. |
timestamps | boolean | Include timestamps in log output. Defaults to true. |
until | string | Show logs until a timestamp or relative duration. |