fix: remove stale containers unconditionally before compose
Old nas-dashboard from failed runs was still running, causing the retry path to skip (old container detected as running). Also stale docker-socket-proxy with restart:unless-stopped caused compose conflict. Fix by force-removing both before compose. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -251,7 +251,8 @@ jobs:
|
||||
# Stop and remove old containers to force recreate with new image.
|
||||
# External networks (gitea_gitea, nas-dashboard_internal) are preserved.
|
||||
docker compose -f /nas-dashboard/docker-compose.yml down 2>/dev/null || true
|
||||
echo "Old containers stopped"
|
||||
docker rm -f docker-socket-proxy nas-dashboard 2>/dev/null || true
|
||||
echo "Old containers stopped and removed"
|
||||
|
||||
# --pull never prevents overwriting the image we just built
|
||||
docker compose -f /nas-dashboard/docker-compose.yml up -d --pull never 2>&1 || true
|
||||
|
||||
Reference in New Issue
Block a user