🧪 Skills

Docker Manager

Docker container lifecycle management. Use when: user asks to list containers, start/stop containers, view logs, check stats, prune unused containers or imag...

v1.0.0
❤️ 0
⬇️ 119
👁 3
Share

Description


name: docker-manager description: "Docker container lifecycle management. Use when: user asks to list containers, start/stop containers, view logs, check stats, prune unused containers or images. Requires Docker CLI installed." metadata: openclaw: emoji: "🐳" requires: bins: - docker

Docker Manager Skill

Manage Docker containers, images, and system resources.

Triggers

  • "docker containers", "list containers"
  • "start container", "stop container"
  • "docker logs", "container logs"
  • "docker stats", "container stats"
  • "docker prune", "cleanup containers"
  • "docker images", "list images"

Commands

List Running Containers

docker ps

List All Containers (including stopped)

docker ps -a

Start a Container

docker start <container_id_or_name>

Stop a Container

docker stop <container_id_or_name>

Restart a Container

docker restart <container_id_or_name>

View Container Logs

# Tail last 100 lines
docker logs --tail 100 <container_id_or_name>

# Follow logs in real-time
docker logs -f <container_id_or_name>

Container Stats (CPU, Memory, Network)

# Stream stats for all running containers
docker stats

# Stats for specific container
docker stats <container_id_or_name>

# Non-streaming (one-time)
docker stats --no-stream <container_id_or_name>

List Docker Images

docker images

Prune Unused Containers

# Remove all stopped containers
docker container prune -f

Prune Unused Images

# Remove dangling images
docker image prune -f

# Remove all unused images
docker image prune -a -f

Docker System DF (Disk Usage)

docker system df

Bundled Scripts

docker-stats.sh

Script for formatted container stats output.

#!/bin/bash
# Docker container stats with formatted output

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

Usage Examples

Intent Command
List running containers docker ps
List all containers docker ps -a
Start nginx container docker start nginx
Stop nginx container docker stop nginx
View webapp logs docker logs --tail 50 webapp
Monitor stats docker stats
List images docker images
Cleanup unused containers docker container prune -f
Cleanup unused images docker image prune -a -f
Check disk usage docker system df

Reviews (0)

Sign in to write a review.

No reviews yet. Be the first to review!

Comments (0)

Sign in to join the discussion.

No comments yet. Be the first to share your thoughts!

Compatible Platforms

Pricing

Free

Related Configs