convert-to-dockerlisted
Install: claude install-skill crypdick/pynchy
# Convert to Docker
This skill migrates NanoClaw from Apple Container (macOS-only) to Docker for cross-platform support (macOS and Linux).
**What this changes:**
- Container runtime: Apple Container → Docker
- Mount syntax: `--mount type=bind,...,readonly` → `-v path:path:ro`
- Startup check: `container system status` → `docker info`
- Build commands: `container build/run` → `docker build/run`
**What stays the same:**
- Dockerfile (already Docker-compatible)
- Agent runner code
- Mount security/allowlist validation
- All other functionality
## Prerequisites
Verify Docker is installed before starting:
```bash
docker --version && docker info >/dev/null 2>&1 && echo "Docker ready" || echo "Install Docker first"
```
If Docker is not installed:
- **macOS**: Download from https://docker.com/products/docker-desktop
- **Linux**: `curl -fsSL https://get.docker.com | sh && sudo systemctl start docker`
## 1. Update Container Runner
Edit `src/container-runner.ts`:
### 1a. Update module comment (around line 3)
```typescript
// Before:
* Spawns agent execution in Apple Container and handles IPC
// After:
* Spawns agent execution in Docker container and handles IPC
```
### 1b. Update directory mount comment (around line 88)
```typescript
// Before:
// Apple Container only supports directory mounts, not file mounts
// After:
// Docker bind mounts work with both files and directories
```
### 1c. Update env workaround comment (around line 120)
```typescript
// Before