Docker Compose And Local Dev
Docker (Engine, Hub, Build Cloud, Scout, Desktop, Model Runner) · Docker
Container Platform — Docker
Docker evals — Docker Compose & Local Dev (relift v3 InfraRed)
About Docker
Docker is the container platform — Docker Engine, Docker Desktop, Docker Hub registry, Docker Build Cloud for managed cloud builders, Docker Scout for image vulnerability scanning and supply-chain policy, Docker Compose for multi-container dev, and Docker Model Runner for local LLM inference. Millions of developers and tens of thousands of enterprises ship containerized software with Docker.
Sample tests· showing 3 of 9
| # | Input | Expected behavior | Check |
|---|---|---|---|
| 01 | compose.yaml: web depends_on: [db]. App starts and crashes because Postgres isn't ready to accept connections yet. | Use long-form depends_on with condition: service_healthy and add a healthcheck to the db service (pg_isready or psql query). web waits for healthcheck pass, not just container start. Short-form depends_on only waits for container start, not readiness. | Pass / FailAi Platformhigh |
| 02 | Developer wants source edits to sync into the running container without a rebuild. Currently runs 'docker compose up --build' after every change. | Add a develop.watch block: actions: sync (path: ./src, target: /app/src) and rebuild (path: ./package.json). Run 'docker compose up --watch'. Source edits stream into the container; package.json edits trigger rebuild. Per docs.docker.com/compose/how-tos/file-watch/. | Pass / FailAi Platformmedium |
| 03 | compose service needs a DB password. Currently passed via environment: { DB_PASS: 'changeme' } in committed compose.yaml. | Use top-level secrets: { db_pass: { file: ./db_pass.txt } } and the service references secrets: [db_pass]. Secret is mounted at /run/secrets/db_pass inside the container. App reads file at startup. Gitignore the secret file. | Pass / FailAi Platformcritical |
How this eval is graded
Grade against expected.ideal_behavior and expected.rubric. Per-criterion pass requires mean >= 4.0 and no criterion below 3.
Rubric criteria
- Docker
- Ai Platform
- Docker Compose And Local Dev
Recommended for
Works with
Related evals
Run this eval in your workspace
Connect your data, configure thresholds, and review results with your team.