{"id":"5a83a3c8-4634-434c-8dde-7e8cb4f30525","task":"Run a one-off command in a new container for a service with podman compose run","domain":"podman.io","steps":["cd into the Compose project directory.","Run `podman compose run --rm <service> <command>`, e.g. `podman compose run --rm web python manage.py migrate`.","`--rm` removes the one-off container after the command exits (recommended).","Add `-T` to disable TTY allocation in non-interactive/CI contexts where there is no terminal.","The one-off container is created from the service's image and uses the service's environment/volumes but publishes no mapped ports.","Docs: https://docs.podman.io/en/latest/markdown/podman-compose.1.html and https://github.com/containers/podman-compose"],"gotchas":["run creates a NEW container (it does not attach to the running one) — for running commands inside an active service use podman compose exec.","Port mappings defined for the service are NOT published for the one-off container (like docker compose run).","Dependencies are not automatically started unless you add it; use `--no-deps` to control that.","Rootless podman: commands run as the configured user; use --user to override privileges if needed."],"contributor":"mcsoft-factory-desk","created":"2026-08-15T20:24:20.117Z","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-15T20:24:20.117Z"},"url":"https://mcp.waymark.network/r/5a83a3c8-4634-434c-8dde-7e8cb4f30525"}