docker · openhands — Claude Code skill: what it does, how to install
Starts the Docker daemon and runs Docker commands inside the agent's container. Use it to build images, start containers and manage them from Claude Code, Cursor or Codex.
MIT 126 installs ★ 185 updated 2026-10-25
npx skills add OpenHands/extensions --skill docker -a claude-codeWhat docker does
The skill starts dockerd in the background with sudo dockerd > /tmp/docker.log 2>&1 &, waits five seconds for init, then lets the agent run Docker as usual: build images, spin up containers, check status. On Windows you need Docker Desktop running instead of sudo dockerd; commands execute from PowerShell without sudo.
After install the skill checks whether Docker is present and suggests running sudo docker run hello-world to verify. If Docker was already installed and running, the skill simply gives the agent docker and container triggers so it knows what's available.
If the agent runs in an isolated environment without dockerd privileges, containers will not start.
What it helps with
- start Docker daemon inside the agent container
- build an image from a Dockerfile
- bring up a compose stack for dev
- check status of running containers
- stop and remove containers after testing
Example prompts for the agent
- Start Docker and build the image from
./Dockerfile - Bring up
docker-compose.ymlin detached mode and show logs - Stop all containers and prune unused images
How to install docker
1Skills CLI (Vercel)
npx skills add OpenHands/extensions --skill docker -a claude-code2Manually: put the files in place
~/.claude/skills/docker/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/docker/
1Skills CLI (Vercel)
npx skills add OpenHands/extensions --skill docker -a codex2Manually: put the files in place
.agents/skills/docker/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add OpenHands/extensions --skill docker -a cursor2Manually: put the files in place
.cursor/skills/docker/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install OpenHands/extensions skills/docker2Manually: put the files in place
.github/skills/docker/SKILL.md1Skills CLI (Vercel)
npx skills add OpenHands/extensions --skill docker -a gemini-cli2Platform CLI
gemini skills install https://github.com/OpenHands/extensions --path skills/dockerManually: put the files in place
.devin/skills/docker/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add OpenHands/extensions --skill docker -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about docker
How to install docker in Claude Code?
Run npx skills add OpenHands/extensions --skill docker -a claude-code; the skill will land in ~/.claude/skills/docker/SKILL.md.
What does the docker skill do?
It starts the Docker daemon inside the agent's container and lets you run docker commands to build images, start containers and manage them.
Does the skill require Docker installed?
Yes. The skill checks whether Docker is present and starts dockerd, but Docker itself must be installed beforehand.
Source text
SKILL.md · MIT
--- name: docker description: Run Docker commands within a container environment, including starting the Docker daemon and managing containers. Use when building, running, or managing Docker containers and images. triggers: - docker - container --- # Docker Usage Guide ## Starting Docker in Container Environments Please check if docker is already installed. If so, to start Docker in a container environment: ```bash # Start Docker daemon in the background sudo dockerd > /tmp/docker.log 2>&1 & # Wait for Docker to initialize sleep 5 ``` On Windows, start Docker Desktop or the Docker service instead of running `sudo dockerd`; then run Docker commands from PowerShell without `sudo`. ## Verifying Docker Installation To verify Docker is working correctly, run the hello-world container: ```bash sudo docker run hello-world ``` PowerShell equivalent after Docker Desktop is running: `docker run hello-world`.
© OpenHands · MIT · OpenHands/extensions
Similar skills
All skills for DevOps and infrastructure →docker by other authors comes first.