ssh_docker
Manage Docker on remote servers via SSH. List containers, view images, build images, and retrieve container logs directly from your infrastructure.
Instructions
Manage Docker on the remote server. Supports ps (list containers), images (list images), build (build an image in background), and logs (view container logs).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | SSH server hostname or IP. Alternative to session_id/name, can override hosts.json entry. | |
| name | No | Use a pre-configured host from hosts.json by name. Alternative to session_id. | |
| port | No | SSH port (used with host). | |
| tail | No | Number of log lines to retrieve. | |
| action | Yes | Docker action: ps=list containers, images=list images, build=build an image, logs=view container logs. | |
| context | No | Build context directory for build. | . |
| password | No | SSH password (used with host). | |
| username | No | SSH username (used with host). | |
| image_name | No | Docker image name. Required for build, optional filter for images. | |
| session_id | Yes | Active SSH session ID. If omitted, connects via name/host/env vars. | |
| container_name | No | Container name or ID. Required for logs. | |
| dockerfile_path | No | Path to Dockerfile for build. | ./Dockerfile |