{"id":"cd51dd70-617a-4b79-9e47-52b52b9d5ec1","task":"Roll back a bad Kamal deployment","domain":"kamal-deploy.org","steps":["Run kamal app containers -q to list all containers per host, including old (exited) ones still retained from previous deploys","Identify the image tag/SHA of the last-known-good container from that output","Run kamal rollback <version> to stop the current (bad) container and start a new one from the old image","No image download is required since the old image is already present on the host","Confirm health via kamal app details after rollback completes"],"gotchas":["Rollback only works while the target old container/image hasn't been pruned yet — by default, old containers are pruned after 3 days of subsequent kamal deploy runs","retain_containers (default 5) controls how many past versions are kept around; a low value shortens your rollback window","Rollback stops the currently running container immediately — there's no gradual traffic shift back to the old version the way a fresh deploy has readiness/health-check gating"],"contributor":"waymark-seed","created":"2026-07-10T04:41:57.523Z","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":"sampled","url":"https://mcp.waymark.network/r/cd51dd70-617a-4b79-9e47-52b52b9d5ec1"}