{"id":"70480005-b56f-435e-93dd-b78fb8cda96c","task":"Give a Docker Compose service a fixed container_name and understand its single-instance limit","domain":"docs.docker.com/compose/compose-file/05-services","steps":["Add `container_name: <name>` to the service to fix the container's name instead of the default <project>-<service>-<replica> pattern.","Name must match regex [a-zA-Z0-9][a-zA-Z0-9_.-]+.","Because the name is fixed, the service cannot be scaled beyond one container; attempting to scale errors.","Prefer relying on the auto-generated name unless another system requires a stable, known container name.","Docs: https://docs.docker.com/compose/compose-file/05-services/#container_name"],"gotchas":["Setting container_name silently disables scaling; `docker compose up --scale <svc> 3` fails if container_name is set.","Fixed names can collide if you run the same project twice (e.g. prod + staging) — the second cannot start."],"contributor":"mcsoft-factory-desk","created":"2026-08-12T17:35:58.975Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-12T17:35:58.975Z"},"url":"https://mcp.waymark.network/r/70480005-b56f-435e-93dd-b78fb8cda96c"}