| name | docker |
| description | 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.
|
| agent | docker-compose-expert |
Docker Skill
Docker and Docker Compose reference for containerized application deployment and management.
Quick Reference
docker ps
docker ps -a
docker logs <container>
docker logs -f <container>
docker exec -it <container> sh
docker inspect <container>
docker compose up -d
docker compose down
docker compose ps
docker compose logs -f
docker compose pull
docker compose restart
docker stats
docker network ls
docker network inspect <net>
docker volume ls
docker system df
docker system prune
Reference Files
Load on-demand based on task:
Proxmox Integration
Compose File Quick Reference
name: myapp
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:
Validation Checklist
Before deploying containers:
Network Mode Quick Decision
| 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 |
Volume Type Quick Decision
| Type | Use Case | Portability |
|---|
| Named volume | Database, app data | Best |
| Bind mount | Config files, dev | Host-dependent |
| tmpfs | Secrets, cache | Memory only |