docker-manage
Manage Docker containers, images, volumes, and Compose stacks. Requires Docker CLI access.
来源信息
- 仓库
- fuyuxiang/echo-agent
- 最近来源活动
- 2026年6月13日 14:21
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 1,057
- 分支
- 27
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- docker-manage
- description
- Manage Docker containers, images, volumes, and Compose stacks. Requires Docker CLI access.
- version
- 1.0.0
- metadata
- {"echo":{"tags":["Docker","Container","DevOps","Deploy","Infrastructure"],"requires":{"bins":"[Truncated]"}}}
# Docker Manage
Docker container and image management.
## Containers
```bash
# Status overview
docker ps -a --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}\t{{.Image}}"
# Resource usage
docker stats --no-stream --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.NetIO}}"
# Logs
docker logs --tail 50 <container>
docker logs --since 1h <container>
# Lifecycle
docker restart <container>
docker stop <container>
docker start <container>
```
## Images
```bash
docker images --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}\t{{.CreatedSince}}"
docker pull <image>:<tag>
docker image prune -f # remove dangling
```
## Docker Compose
```bash
docker compose ps
docker compose up -d <service>
docker compose logs -f --tail 100 <service>
docker compose restart <service>
docker compose pull && docker compose up -d # update all
```
## Health Checks
```bash
# Check container health
docker inspect --format='{{.State.Health.Status}}' <container>
# All unhealthy containers
docker ps --filter health=unhealthy
```
## Troubleshooting
```bash
# Shell into container
docker exec -it <container> sh
# Port conflicts
docker ps --format "{{.Ports}}" | sort
# Disk usage
docker system df
# Network inspect
docker network ls
docker network inspect <network>
```
## Safety
Always confirm before:
- `docker rm` / `docker rmi`
- `docker system prune`
- `docker compose down -v` (removes volumes!)
在 GitHub 查看