Docker and Docker Compose reference for container deployment, networking, volumes, and orchestration. Includes Proxmox hosting and LXC comparison patterns. Use when working with docker-compose.yaml, Dockerfiles, troubleshooting containers, or planning container architecture. Triggers: docker, compose, container, dockerfile, volume, network, service, lxc.
Docker and Docker Compose reference for containerized application deployment and management.
# Container operations
docker ps # List running containers
docker ps -a # List all containers
docker logs <container> # View logs
docker logs -f <container> # Follow logs
docker exec -it <container> sh # Shell into container
docker inspect <container> # Full container details
# Compose operations
docker compose up -d # Start services (detached)
docker compose down # Stop and remove
docker compose ps # List compose services
docker compose logs -f # Follow all logs
docker compose pull # Pull latest images
docker compose restart # Restart services
# Troubleshooting
docker stats # Resource usage
docker network ls # List networks
docker network inspect <net> # Network details
docker volume ls # List volumes
docker system df # Disk usage
docker system prune # Clean up unused resources
Load on-demand based on task:
| Topic | File | When to Load | |-------|------|--------------| | Compose Structure | compose.md | Writing docker-compose.yaml | | Networking | networking.md | Network modes, port mapping | | Volumes | volumes.md | Data persistence, mounts | | Dockerfile | dockerfile.md | Building images | | Troubleshooting | troubleshooting.md | Common errors, diagnostics |
| Topic | File | When to Load | |-------|------|--------------| | Docker on Proxmox | proxmox/hosting.md | VM sizing, storage, GPU passthrough | | LXC vs Docker | proxmox/lxc-vs-docker.md | Choosing container type |
name: myapp # Project name (optional)
services:
web:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./html:/usr/share/nginx/html:ro
networks:
- frontend
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 10s
retries: 3
networks:
frontend:
driver: bridge
volumes:
data:
Before deploying containers:
| Mode | Use Case | Isolation | |------|----------|-----------| | bridge | Default, most services | Container isolated | | host | Performance, network tools | No isolation | | macvlan | Direct LAN access | Own MAC/IP | | ipvlan | Like macvlan, shared MAC | Own IP | | none | No networking | Full isolation |
| Type | Use Case | Portability | |------|----------|-------------| | Named volume | Database, app data | Best | | Bind mount | Config files, dev | Host-dependent | | tmpfs | Secrets, cache | Memory only |
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer