From bf5849f235ac8109f617d832a988a333ccae4cc7 Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Mon, 1 Jun 2026 22:19:08 +0700 Subject: [PATCH] fix(ci): add docker compose down before up to resolve container name conflict The VPS has orphan containers from previous deployments that conflict with new compose up. Running compose down --remove-orphans first cleans them up. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/deploy-docker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-docker.yml b/.github/workflows/deploy-docker.yml index 6a50e48..05385b8 100644 --- a/.github/workflows/deploy-docker.yml +++ b/.github/workflows/deploy-docker.yml @@ -140,5 +140,6 @@ jobs: echo "$GHCR_TOKEN" | docker login ghcr.io -u "$GHCR_USERNAME" --password-stdin docker compose pull + docker compose down --remove-orphans || true docker compose up -d --force-recreate --remove-orphans docker image prune -f