docker

CLI

Build, run, and manage containers from the CLI.

Build and run containers, manage images and networks

4 curated recipes · not yet executed by the harness#containers#build#images#run

Recipes

Curated from documentation and usage. Percentages are estimates, not measurements.

Build an image

~97% est.
docker build -t myapp:latest .

Run container with port mapping

~97% est.
docker run -p 3000:3000 --rm myapp:latest

Get shell inside running container

~97% est.
docker exec -it container_name /bin/sh

Remove all stopped containers and unused images

~98% est.
docker system prune -af
Common failures (1)
  • Removes too muchUse docker container prune or docker image prune separately

Install

Manualhttps://docs.docker.com/get-docker/

Agent notes

When to use
Running containerized applications or building Docker images

Use from an agent

curl -s https://clihub.com/api/tools/docker | jq '.agentHints.provenRecipes[] | {task, command, verified}'

Or call get_tool with slug docker on the MCP server at https://clihub.com/mcp.

Homepage ↗Apache-2.00 views