Skip to content
manage-container logo

Manage Container

manage-container

Docker コンテナを管理する。「コンテナ一覧」「docker ps」「コンテナ確認」「コンテナ止めて」「コンテナ起動」「コンテナ再起動」「コンテナに入って」「コンテナの状態」「実行中のコンテナ」「コンテナのリソース」「docker stats」「docker inspect」「コンテナのログ」「docker logs」などで起動。

SKILL.md

Full skill instructions

Manage Container

Docker コンテナの管理を行います。

対応操作

操作トリガー例コマンド
一覧表示「コンテナ一覧」「docker ps」docker ps
起動「コンテナ起動」「start」docker start
停止「コンテナ止めて」「stop」docker stop
再起動「再起動して」「restart」docker restart
実行「コンテナに入って」「exec」docker exec
リソース「リソース確認」「stats」docker stats
詳細「詳細情報」「inspect」docker inspect
ログ「ログ確認」「logs」docker logs

実行手順

1. 意図の判定

ユーザーの発話から操作を判定:

  • 一覧/確認系: 「一覧」「確認」「見せて」「ps」→ docker ps
  • 起動系: 「起動」「start」「動かして」→ docker start
  • 停止系: 「止めて」「stop」「停止」→ docker stop
  • 再起動系: 「再起動」「restart」→ docker restart
  • 実行系: 「入って」「exec」「シェル」→ docker exec
  • リソース系: 「リソース」「stats」「CPU」「メモリ」→ docker stats
  • 詳細系: 「詳細」「inspect」「設定」→ docker inspect
  • ログ系: 「ログ」「logs」→ docker logs

2. コンテナ一覧表示

docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}"

停止中も含める場合:

docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Image}}\t{{.Status}}"

3. コンテナ操作

起動:

docker start <container>

停止:

docker stop <container>

再起動:

docker restart <container>

コンテナ内でコマンド実行:

docker exec -it <container> /​bin/​sh
# または
docker exec -it <container> /​bin/​bash

リソース使用量:

docker stats --no-stream --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.NetIO}}\t{{.BlockIO}}"

詳細情報:

docker inspect <container> --format '{{json .}}' | jq '.'
# または特定の情報
docker inspect <container> --format '{{.State.Status}}'
docker inspect <container> --format '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'

ログ表示:

# 最新100行
docker logs --tail 100 <container>

# リアルタイム追跡
docker logs -f <container>

# 時刻指定
docker logs --since 1h <container>

# タイムスタンプ付き
docker logs -t --tail 100 <container>

4. 出力フォーマット

## コンテナ一覧

| ID | 名前 | イメージ | 状態 | ポート |
|----|------|----------|------|--------|
| ... | ... | ... | ... | ... |

実行中: {N} / 全体: {M}
## リソース使用量

| コンテナ | CPU | メモリ | ネットワーク | ディスク |
|----------|-----|--------|-------------|----------|
| ... | ... | ... | ... | ... |

注意事項

  • ✅ 停止操作前に確認を求める(本番環境の可能性)
  • ✅ exec ではインタラクティブモード(-it)を使用
  • ❌ docker kill は使用しない(graceful shutdown を優先)
  • ❌ docker rm は使用しない(cleanup コマンドに委譲)

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
Imagica logo
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View