docker-cli
Manage Docker containers, images, volumes, and networks using the Docker CLI. Use when the user mentions docker, containers, images, volumes, docker-compose, or Dockerfile.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- docker-cli
- description
- Manage Docker containers, images, volumes, and networks using the Docker CLI. Use when the user mentions docker, containers, images, volumes, docker-compose, or Dockerfile.
02 资源文件 2
- 参考文档agents/openai.yaml360 B
- 参考文档THIRD_PARTY_NOTICES.md1.5 KB
03 SKILL.md 正文
Docker CLI
Manage Docker containers, images, volumes, and networks directly via the docker CLI through the Bash tool. Replaces the Docker MCP server with native CLI calls.
Prerequisites
Verify Docker is installed and the daemon is running:
command -v docker && docker info --format '{{.ServerVersion}}'
If Docker is not installed, guide the user to https://docs.docker.com/get-docker/.
Container Management
List containers
# Running containers
docker ps
# All containers (including stopped)
docker ps -a
Run a container
docker run [OPTIONS] <image> [COMMAND]
# Common flags:
# -d Run in background (detached)
# -p HOST:CONT Publish port
# -v HOST:CONT Bind mount volume
# --name NAME Assign container name
# --rm Remove container on exit
# -e KEY=VAL Set environment variable
# --network NET Join a network
# Example: Run nginx on port 8080
docker run -d -p 8080:80 --name my-nginx nginx
Stop and remove containers
docker stop <container>
docker rm <container>
# Force remove a running container
docker rm -f <container>
View logs
docker logs <container>
# Follow logs in real time
docker logs -f <container>
# Show last N lines
docker logs --tail 100 <container>
Execute command in a running container
docker exec -it <container> <command>
# Example: Open a shell
docker exec -it <container> /bin/sh
Image Management
List images
docker images
Build an image
docker build -t <name>:<tag> .
# Build with a specific Dockerfile
docker build -t <name>:<tag> -f Dockerfile.dev .
# Build with build arguments
docker build --build-arg KEY=VAL -t <name>:<tag> .
Pull and push images
docker pull <image>:<tag>
docker push <image>:<tag>
Remove images
docker rmi <image>
# Remove dangling images
docker image prune
Docker Compose
Start services
docker compose up
# Detached mode
docker compose up -d
# Rebuild before starting
docker compose up --build
Stop services
docker compose down
# Also remove volumes
docker compose down -v
View compose logs
docker compose logs
# Follow specific service
docker compose logs -f <service>
Run one-off commands
docker compose exec <service> <command>
docker compose run <service> <command>
Volume Management
# List volumes
docker volume ls
# Create a volume
docker volume create <name>
# Inspect a volume
docker volume inspect <name>
# Remove a volume
docker volume rm <name>
Network Management
# List networks
docker network ls
# Create a network
docker network create <name>
# Connect a container to a network
docker network connect <network> <container>
# Inspect a network
docker network inspect <name>
System Cleanup
Always ask the user before running cleanup commands -- these remove data that may be needed.
# Remove stopped containers, unused networks, dangling images, and build cache
docker system prune
# Also remove unused volumes (more aggressive)
docker system prune --volumes
# Show disk usage
docker system df
Inspecting Resources
# Detailed info about any resource
docker inspect <container|image|volume|network>
# Resource stats (live CPU/memory)
docker stats
Error Handling
"Cannot connect to the Docker daemon"
- Docker Desktop may not be running. Start it manually.
- On Linux:
sudo systemctl start docker
"Permission denied"
- The user may need to be in the
dockergroup:sudo usermod -aG docker $USER - Or prefix commands with
sudo
"Port already in use"
- Another process is using the port. Check with
netstat -tlnp | grep <port>or choose a different host port.
04 同仓库更多 Skills
clarify-requirements
Resolve genuine pre-execution ambiguity by scanning repo context, generating 1-6 grounded options, and asking 1-3 focused questions via AskUserQuestion. NOT for mid-task use (injection risk); NOT when the goal is already unambiguous; use to disambiguate vague prompts before any file edits.
openmm-md
Run FREE, open-source, Windows-native GPU molecular dynamics via the openmm-md MCP (OpenMM + CUDA on the local NVIDIA GPU). Use for protein / protein-ligand MD when you want a free stack or are on Windows without a Schrodinger license. Covers the full workflow (prepare, solvate, minimize, equilibrate, production, analyze, mmgbsa) AND an honest decision guide vs Schrodinger Desmond, including how to run Desmond legitimately on Linux or a cloud GPU with a real license. This is a deliberately LESSER free alternative and does NOT replace the schrodinger MCP tools. Do NOT use it to pick a free tool when a validated FEP+, WaterMap, IFD-MD, or Prime MM-GBSA result is actually required.
visual-review
Take screenshots of web pages and UI using Playwright for visual review and iteration
status
Diagnostic status report — shows metaswarm installation state, project setup, and potential issues
start
Use when starting work on any task, when the user mentions metaswarm, or when the user wants to begin tracked development work
setup
Interactive project setup — detects your project, configures metaswarm, writes project-local files