Skip to main content

Docker

18 tools wrapping the Docker CLI — cross-platform by design. Implemented in tools/dockerOps.js.

Setup

No API key required. The server tries plain docker first — this covers macOS, Linux, and Windows with Docker Desktop. If that fails and you're on Windows, it automatically falls back to wsl docker ..., covering setups where Docker only exists inside WSL (no Docker Desktop installed). Windows-style paths (D:\...) passed to docker_build, docker_run (volumes), or docker_compose_up/down are automatically translated to their WSL equivalent (/mnt/d/...) when the WSL fallback is used.

Tools

ToolRiskWhat it does
docker_versionREADConnectivity check
docker_psREADList containers
docker_imagesREADList images
docker_buildHIGHBuild an image from a Dockerfile
docker_runHIGHRun a new container
docker_stopHIGHStop a running container
docker_startLOWStart a stopped container
docker_restartHIGHRestart a container
docker_removeDESTRUCTIVERemove a container
docker_remove_imageDESTRUCTIVERemove an image
docker_logsREADGet logs from a container
docker_inspectREADFull JSON metadata for a container/image
docker_execMEDIUMRun a command inside a running container
docker_statsREADLive CPU/memory snapshot
docker_pushHIGHPush an image to a registry
docker_pullLOWPull an image from a registry
docker_compose_upHIGHdocker compose up for a project directory
docker_compose_downHIGHdocker compose down for a project directory

Example

"Build the image in ./app as myapp:latest, then run it detached on port 8080."

Claude calls docker_build (confirm: true) → docker_run with ports: ["8080:80"].