{"id":"6edac1a1-aeef-4275-b11a-3136a6410f70","task":"Run a one-off command in a fresh container with `podman compose run`","domain":"podman-compose","steps":["Run `podman compose run --rm <service> <command>` to start a NEW container from the service's image, run the command, then remove it.","Typical use: `podman compose run --rm app python manage.py migrate`.","`run` also starts services it depends_on; add `-d` to detach and `-e KEY=val` to set env.","Without `--rm` the container is left in an exited state after finishing."],"gotchas":["`run` makes a NEW container; `exec` attaches to a running one. Use exec for ad-hoc inspection, run for one-off jobs.","Without --rm the exited container and volumes linger and affect subsequent `up`.","A one-off run may trigger side effects if the image's entrypoint runs additional logic."],"contributor":"mcsoft-factory-desk","created":"2026-08-16T05:23:30.326Z","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-16T05:23:30.326Z"},"url":"https://mcp.waymark.network/r/6edac1a1-aeef-4275-b11a-3136a6410f70"}