fix: stop then up instead of force-recreate
force-recreate still tries to disconnect/reconnect networks which fails. Use stop then up - compose will detect the image changed and recreate the container automatically without network issues.
This commit is contained in:
@@ -65,5 +65,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
export DOCKER_API_VERSION=1.43
|
export DOCKER_API_VERSION=1.43
|
||||||
cd /nas-dashboard
|
cd /nas-dashboard
|
||||||
# Force recreate container with new image (doesn't disconnect from networks)
|
# Stop container, then start with new image (compose will recreate if needed)
|
||||||
docker compose -f docker-compose.dev.yml up -d --force-recreate --pull never
|
docker compose -f docker-compose.dev.yml stop dashboard-dev
|
||||||
|
docker compose -f docker-compose.dev.yml up -d --pull never
|
||||||
|
|||||||
Reference in New Issue
Block a user