# Docker Management

Docker containers, images, volumes, networks (CLI + Dockerode)

- Repository: https://github.com/taracodlabs/aiden (868 stars)
- Category: DevOps
- License: Apache-2.0
- Last updated: 2026-10-19
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add taracodlabs/aiden --skill docker-management -g -a claude-code -y`
Codex: `npx skills add taracodlabs/aiden --skill docker-management -g -a codex -y`
Cursor: `npx skills add taracodlabs/aiden --skill docker-management -g -a cursor -y`
Gemini CLI: `npx skills add taracodlabs/aiden --skill docker-management -g -a gemini-cli -y`

## Description

Docker containers, images, volumes, networks (CLI + Dockerode)

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Docker Container Management

Manage Docker containers, images, volumes, and networks using the Docker CLI or Dockerode (Node.js Docker API client already in DevOS).

## When to Use

- User wants to list running or stopped containers
- User wants to start, stop, or restart a container
- User wants to pull, build, or remove Docker images
- User wants to view container logs
- User wants to inspect container resource usage

## How to Use

### 1. List containers

```powershell
# Running containers
docker ps

# All containers including stopped
docker ps -a --format "table {{.Names}}\t{{.Status}}\t{{.Image}}\t{{.Ports}}"
```

### 2. Start, stop, and restart containers

```powershell
docker start  my-container
docker stop   my-container
docker restart my-container

# Stop all running containers
docker stop $(docker ps -q)
```

### 3. View container logs

```powershell
# Last 100 lines
docker logs my-container --tail 100

# Follow live output
docker logs my-container --follow --tail 50
```

### 4. Manage images

```powershell
# List images
docker images

# Pull latest image
docker pull nginx:latest

# Remove image
docker rmi nginx:latest

# Build from Dockerfile in current directory
docker build -t my-app:v1 .
```

### 5. Container resource usage

```powershell
# Live resource stats (CPU, memory, network)
docker stats --no-stream

# Inspect a specific container
docker inspect my-container | python -m json.tool
```

### 6. Manage volumes and networks

```powershell
# List volumes
docker volume ls

# List networks
docker network ls

# Remove unused volumes (reclaim disk)
docker volume prune -f

# Remove stopped containers, unused images, and networks
docker system prune -f
```

### 7. Execute commands inside a container

```powershell
# Interactive shell
docker exec -it my-container /bin/bash

# Run a single command
docker exec my-container cat /etc/nginx/nginx.conf
```

### 8. Docker Compose operations

The rest: https://github.com/taracodlabs/aiden/blob/HEAD/skills/docker-management/SKILL.md
