fix: use --force-recreate to update container in-place
This avoids disconnecting from networks which seems to cause issues when run from the workflow container. Force recreate updates the container without removing it first.
This commit is contained in:
@@ -65,7 +65,5 @@ jobs:
|
||||
run: |
|
||||
export DOCKER_API_VERSION=1.43
|
||||
cd /nas-dashboard
|
||||
# Stop and remove container, then recreate with new image
|
||||
docker stop nas-dashboard-dev 2>/dev/null || true
|
||||
docker rm nas-dashboard-dev 2>/dev/null || true
|
||||
docker compose -f docker-compose.dev.yml up -d --pull never
|
||||
# Force recreate container with new image (doesn't disconnect from networks)
|
||||
docker compose -f docker-compose.dev.yml up -d --force-recreate --pull never
|
||||
|
||||
Reference in New Issue
Block a user