docker
CLIBuild, run, and manage containers from the CLI.
Build and run containers, manage images and networks
Recipes
Curated from documentation and usage. Percentages are estimates, not measurements.
Build an image
docker build -t myapp:latest .Run container with port mapping
docker run -p 3000:3000 --rm myapp:latestGet shell inside running container
docker exec -it container_name /bin/shRemove all stopped containers and unused images
docker system prune -afCommon failures (1)
- Removes too muchUse docker container prune or docker image prune separately
Install
Manual
https://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.