fix: just restart container instead of recreating
Docker restart will use the new image that was just built. Avoids all the network reconnection issues from recreating the container. Simple and proven to work.
This commit is contained in:
@@ -64,6 +64,5 @@ jobs:
|
||||
- name: Deploy dev
|
||||
run: |
|
||||
export DOCKER_API_VERSION=1.43
|
||||
# Execute deploy script on NAS host directly (not from workflow container)
|
||||
# This avoids Docker-in-Docker network connection issues
|
||||
ssh -o StrictHostKeyChecking=no zjgump@host.docker.internal "cd /volume1/docker/nas-dashboard && /volume1/@appstore/ContainerManager/usr/bin/docker rm -f nas-dashboard-dev || true && /volume1/@appstore/ContainerManager/usr/bin/docker compose -f docker-compose.dev.yml up -d --pull never"
|
||||
# Just restart the container - it will use the new image
|
||||
docker restart nas-dashboard-dev
|
||||
|
||||
Reference in New Issue
Block a user