From 80a1d0eef461fb7659ff234b086c70b5b328b5b5 Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Sun, 11 Jan 2026 13:45:12 -0800 Subject: [PATCH] fix(install): ensure update script always pulls latest imgs --- install/update_nomad.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install/update_nomad.sh b/install/update_nomad.sh index 84314aa..6ec6cd0 100644 --- a/install/update_nomad.sh +++ b/install/update_nomad.sh @@ -102,6 +102,12 @@ ensure_docker_compose_file_exists() { } force_recreate() { + echo -e "${YELLOW}#${RESET} Pulling the latest Docker images..." + if ! docker compose -f /opt/project-nomad/compose.yml pull; then + echo -e "${RED}#${RESET} Failed to pull the latest Docker images. Please check your network connection and the Docker registry status, then try again." + exit 1 + fi + echo -e "${YELLOW}#${RESET} Forcing recreation of containers..." if ! docker compose -f /opt/project-nomad/compose.yml up -d --force-recreate; then echo -e "${RED}#${RESET} Failed to recreate containers. Please check the Docker logs for more details."