在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用docker-ops
星标0
分支0
更新时间2026年1月26日 14:13
Docker container operations and debugging
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Docker container operations and debugging
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
GitOps workflows with ArgoCD for Kubernetes deployments
AWS operations, queries, and resource management
Cloud cost analysis and optimization strategies
Git workflows, branching strategies, and DevOps practices
Structured incident response and diagnosis workflows
Kubernetes debugging and troubleshooting workflows
基于 SOC 职业分类
| name | docker-ops |
| description | Docker container operations and debugging |
| homepage | https://docs.docker.com/ |
| metadata | {"emoji":"🐳","version":"1.0.0","author":"Gourav Shah","license":"MIT","requires":{"bins":["docker"]},"tags":["docker","containers","debugging"]} |
Quick reference for Docker container management and debugging.
Use this skill when:
# Running containers
docker ps
# All containers (including stopped)
docker ps -a
# With size info
docker ps -s
# Custom format
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"
# View logs
docker logs <container>
# Follow logs (live)
docker logs -f <container>
# Last N lines
docker logs --tail 100 <container>
# With timestamps
docker logs -t <container>
# Since time
docker logs --since 1h <container>
# Live stats for all containers
docker stats
# One-time stats (no stream)
docker stats --no-stream
# Specific container
docker stats <container>
# Start stopped container
docker start <container>
# Stop running container
docker stop <container>
# Restart container
docker restart <container>
# Kill (force stop)
docker kill <container>
# Run command in container
docker exec <container> <command>
# Interactive shell
docker exec -it <container> /bin/sh
docker exec -it <container> /bin/bash
# As root
docker exec -u root -it <container> /bin/sh
# Full inspect output
docker inspect <container>
# Get specific field
docker inspect -f '{{.State.Status}}' <container>
docker inspect -f '{{.NetworkSettings.IPAddress}}' <container>
docker inspect -f '{{json .Config.Env}}' <container>
# All images
docker images
# With digests
docker images --digests
# Dangling images only
docker images -f "dangling=true"
# Pull image
docker pull <image>:<tag>
# Push image
docker push <image>:<tag>
# Remove stopped containers
docker container prune -f
# Remove unused images
docker image prune -f
# Remove unused volumes
docker volume prune -f
# Remove unused networks
docker network prune -f
# Full system cleanup (safe - only unused)
docker system prune -f
# Docker disk usage summary
docker system df
# Detailed breakdown
docker system df -v
# Check container state
docker inspect -f '{{.State.Status}}' <container>
docker inspect -f '{{.State.Error}}' <container>
# Check logs
docker logs <container>
# Check events
docker events --since 1h --filter container=<container>
# List networks
docker network ls
# Inspect network
docker network inspect <network>
# Check container network
docker inspect -f '{{json .NetworkSettings.Networks}}' <container>
# Test connectivity from container
docker exec <container> ping -c 3 <host>
docker exec <container> curl -v <url>
# Check container resource limits
docker inspect -f '{{.HostConfig.Memory}}' <container>
docker inspect -f '{{.HostConfig.CpuShares}}' <container>
# Live resource usage
docker stats <container> --no-stream
# Run and remove after
docker run --rm <image> <command>
# Example: check version
docker run --rm alpine cat /etc/alpine-release
# Copy from container to host
docker cp <container>:/path/to/file ./local/path
# Copy from host to container
docker cp ./local/file <container>:/path/in/container
# Processes in container
docker top <container>
| Symptom | Check | Fix |
|---|---|---|
| Container exits immediately | docker logs <container> | Fix application error |
| Can't connect to container | docker inspect network | Check port mapping |
| Container slow | docker stats | Increase resources |
| Disk full | docker system df | docker system prune |
| Image pull fails | Network/auth | Check registry access |