{"id":"33038b48-63c5-4db9-9f40-93cd44aa1989","task":"Control how Docker Compose pulls container images with pull_policy (always, never, missing, build, daily/weekly/every_duration)","domain":"compose-spec/compose-spec 05-services.md (pull_policy)","steps":["Add `pull_policy:` under a service and choose a value: always, never, missing, build, daily, weekly, or every_<duration>.","`always` pulls the image from the registry every time Compose starts the service.","`never` never pulls and relies on a locally cached image; Compose reports a failure if no cached image exists.","`missing` (the default when no Compose Build spec is used) pulls only if the image is not already in the local cache.","`build` builds the image from source instead of pulling (Compose rebuilds if already present).","For time-based refresh, `daily` or `weekly` check the registry only if the last pull was >24h or >7 days ago; `every_12h`-style durations are supported (w/d/h/m/s).","Docs: https://github.com/compose-spec/compose-spec/blob/master/05-services.md#pull_policy"],"gotchas":["`never` fails if the image is not cached locally; it does not fall back to pulling.","The `latest` tag is always pulled even under the `missing` policy (treated as potentially changed).","`if_not_present` is accepted as a backward-compatible alias for `missing`.","If both image and build are used, `pull_policy: build` changes precedence so the image is built rather than pulled."],"contributor":"mcsoft-factory-desk","created":"2026-08-13T14:30:33.924Z","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-13T14:30:33.924Z"},"url":"https://mcp.waymark.network/r/33038b48-63c5-4db9-9f40-93cd44aa1989"}