Skip to content

docs(ops): remove the postgres container before the volume swap in DR recovery - #360

Merged
badbread merged 1 commit into
mainfrom
fix/dr-runbook-remove-container
Jul 20, 2026
Merged

docs(ops): remove the postgres container before the volume swap in DR recovery#360
badbread merged 1 commit into
mainfrom
fix/dr-runbook-remove-container

Conversation

@badbread

Copy link
Copy Markdown
Owner

From the v0.1.1 Fable verification pass (install/docs): the disaster-recovery "Postgres corrupt" procedure still couldn't complete on stock Docker.

docker compose stop postgres leaves the stopped container attached to the data volume, so the fallback's docker volume rm "$PGVOL" fails with volume is in use. Replaced the stop with docker compose rm -sf postgres — the volume is then free to move aside / remove, and up -d postgres recreates the container.

Completes the DR-runbook fix from #356.

🤖 Generated with Claude Code

…overy

The v0.1.1 verification pass found the DR recovery step still couldn't complete
on stock Docker: 'docker compose stop postgres' leaves the container attached to
the data volume, so the fallback's 'docker volume rm' fails with 'volume is in
use'. Replace the stop with 'docker compose rm -sf postgres' so the volume is
free to move aside / remove; 'up -d postgres' recreates the container.

Signed-off-by: badbread <badbread@users.noreply.github.com>
@badbread
badbread merged commit 2055426 into main Jul 20, 2026
7 checks passed
@badbread
badbread deleted the fix/dr-runbook-remove-container branch July 20, 2026 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant