11ai-operator-docker-compose

Docker operator

Operate Docker Compose applications by locating the project file, validating configuration, inspecting services, viewing logs, and managing startup or shutdown safely. Use when the user mentions Compose, a compose.yaml file, a multi-container app, or service-level operations.

terminal
$ npx skills add rj11io/11ai --skill 11ai-operator-docker-compose

Try it — say this to your agent

Use 11ai-operator-docker-compose for this task.

The full playbook · v0/plugins/11ai-operator-docker/skills/11ai-operator-docker-compose/SKILL.md

11ai Docker Compose

Version baseline: Current stable Docker tooling: Engine 29.x (29.6.2 at this review), Compose v5, and the matching current BuildKit/containerd supplied by the installation. Inspect each component independently because Docker Desktop, Engine, Compose, Buildx, and the API do not share one version.

Treat the Compose file as the source of truth for service names, images, ports, environment, volumes, networks, health checks, and dependencies. Work from the directory containing the selected file unless the user specifies another project directory.

Discover and validate

Look for compose.yaml, compose.yml, docker-compose.yml, and docker-compose.yaml. If there are multiple files or override files, identify which one is intended instead of silently merging an arbitrary set.

docker compose config
docker compose config --quiet
docker compose ps

Use -f FILE and --project-name NAME only when the project layout or user request calls for them. config can reveal missing variables, invalid interpolation, duplicate ports, and service dependency problems before startup.

Inspect services

docker compose ps -a
docker compose logs --tail=200 SERVICE
docker compose logs -f --tail=200 SERVICE
docker compose top SERVICE
docker compose exec SERVICE sh

Use docker compose logs before restarting a failing service. If a shell is unavailable, inspect the image and use a non-interactive diagnostic command rather than guessing.

Lifecycle operations

docker compose up -d
docker compose up -d --build SERVICE
docker compose restart SERVICE
docker compose stop SERVICE
docker compose start SERVICE
docker compose pull SERVICE
docker compose build SERVICE
docker compose down

Run a lifecycle command when the user explicitly requests it or when the requested task clearly includes that operation. Explain whether it builds, downloads, stops, recreates, or leaves volumes intact. Never add --volumes or --remove-orphans casually; both can remove state or hide configuration drift. down --volumes requires explicit approval after naming the affected volumes.

Safe handoff

When a service cannot start, collect config, ps -a, and targeted logs, then hand off to 11ai-operator-docker-troubleshooting. When cleanup is requested across the project, use 11ai-operator-docker-cleanup rather than inventing a broad prune command.

Report the Compose file, project name, affected services, exact command, and resulting service state. Redact interpolated secrets from output.

Want the source?

This page renders the skill's markdown straight from the repository.

Open on GitHub
More Docker operator skills