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: |
|
run: |
|
||||||
export DOCKER_API_VERSION=1.43
|
export DOCKER_API_VERSION=1.43
|
||||||
cd /nas-dashboard
|
cd /nas-dashboard
|
||||||
# Stop and remove container, then recreate with new image
|
# Force recreate container with new image (doesn't disconnect from networks)
|
||||||
docker stop nas-dashboard-dev 2>/dev/null || true
|
docker compose -f docker-compose.dev.yml up -d --force-recreate --pull never
|
||||||
docker rm nas-dashboard-dev 2>/dev/null || true
|
|
||||||
docker compose -f docker-compose.dev.yml up -d --pull never
|
|
||||||
|
|||||||
Reference in New Issue
Block a user