dokploy_docker
Manage Docker daemons: list, start, stop, restart, remove containers, inspect configs, read/write/delete files inside running containers, view events, health, disk usage, and prune build cache.
Instructions
Docker daemon management: containers, files inside them, events, health, and disk usage. Containers: getContainers (list all, serverId?), restartContainer/startContainer/stopContainer/killContainer/removeContainer (containerId, serverId?), getConfig (containerId, serverId?), findContainers (appName+method, serverId?). Method semantics: match → fuzzy name match (optional appType: stack|docker-compose). label → REQUIRES type: standalone|swarm. stack → docker stack lookup. service → swarm service lookup. Container files (containerId+path, serverId?): listContainerFiles, readContainerFile (output truncated at 100k chars), writeContainerFile (+content — writes into the RUNNING container; the change is lost on redeploy unless the path is a mount), deleteContainerFile. Observability: getEvents (minutes? 1-1440, default 15), getServerHealth (sinceHours? 1-168). Disk: getDiskUsage (docker system df — containers, volumes, images and build cache), getBuildCache, pruneBuildCache (same effect as dokploy_settings clean cleanType=dockerBuilder).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute path inside the container, for the file actions | |
| type | No | Required for method=label: standalone | swarm | |
| action | Yes | ||
| method | No | ||
| appName | No | ||
| appType | No | App type filter for method=match only: stack | docker-compose | |
| content | No | writeContainerFile: full new file contents | |
| minutes | No | getEvents: look back N minutes (default 15) | |
| serverId | No | ||
| sinceHours | No | getServerHealth: look back N hours (max 168) | |
| containerId | No |