docker-manager

Docker 容器管理。查看、启动、停止、删除容器,监控资源使用,查看日志。适合运维和开发。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "docker-manager" with this command: npx skills add sxliuyu/docker-manager

Docker Manager 🐳

Docker 容器管理工具,查看、启动、停止、删除容器,监控资源,查看日志。

功能

  • 📋 列出容器(运行中/全部)
  • ▶️ 启动/停止/重启容器
  • 📊 容器资源监控(CPU/内存/网络)
  • 📝 查看容器日志
  • 🗑️ 删除容器/镜像
  • 🔍 容器详情查询
  • 📦 镜像管理

使用方法

列出容器

python3 scripts/docker_mgr.py ps
python3 scripts/docker_mgr.py ps --all

启动/停止/重启

python3 scripts/docker_mgr.py start nginx
python3 scripts/docker_mgr.py stop nginx
python3 scripts/docker_mgr.py restart nginx

查看资源监控

python3 scripts/docker_mgr.py stats
python3 scripts/docker_mgr.py stats nginx

查看日志

python3 scripts/docker_mgr.py logs nginx
python3 scripts/docker_mgr.py logs nginx --tail 100
python3 scripts/docker_mgr.py logs nginx --follow

容器详情

python3 scripts/docker_mgr.py inspect nginx

镜像列表

python3 scripts/docker_mgr.py images

删除容器/镜像

python3 scripts/docker_mgr.py rm nginx
python3 scripts/docker_mgr.py rmi nginx:latest

示例

# 查看所有容器(包括停止的)
python3 scripts/docker_mgr.py ps --all

# 查看运行中容器的资源使用
python3 scripts/docker_mgr.py stats

# 查看特定容器的最近50行日志
python3 scripts/docker_mgr.py logs mycontainer --tail 50

# 批量停止所有运行中的容器
python3 scripts/docker_mgr.py stop $(docker ps -q)

# 删除已停止的容器
python3 scripts/docker_mgr.py prune

常用 Docker 命令速查

操作命令
列出容器docker ps -a
启动容器docker start <name>
停止容器docker stop <name>
查看日志docker logs -f <name>
进入容器docker exec -it <name> bash
查看资源docker stats

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Gigo Lobster Taster

🦞 GIGO · gigo-lobster-taster: 正式试吃模式:跑完整评测,默认上传云端、生成个人结果页并进入排行榜。 Triggers: 试吃我的龙虾 / 品鉴我的龙虾 / lobster taste / lobster taster.

Registry SourceRecently Updated
General

Invoice Generator

Creates professional invoices in markdown and HTML

Registry SourceRecently Updated
92001kalin
General

backstage companion

Anti-drift protocol script. Ensures parity between docs and system. Triggers: 'bom dia PROJECT' / 'good morning PROJECT' (load project context with health ch...

Registry SourceRecently Updated
General

stratos-storage

Upload and download files to/from Stratos Decentralized Storage (SDS) network. Use when the user wants to store files on Stratos, retrieve files from Stratos, upload to decentralized storage, or download from SDS.

Registry SourceRecently Updated