Skip to content

Commit 80a1d0e

Browse files
committed
fix(install): ensure update script always pulls latest imgs
1 parent 275ca80 commit 80a1d0e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

install/update_nomad.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ ensure_docker_compose_file_exists() {
102102
}
103103

104104
force_recreate() {
105+
echo -e "${YELLOW}#${RESET} Pulling the latest Docker images..."
106+
if ! docker compose -f /opt/project-nomad/compose.yml pull; then
107+
echo -e "${RED}#${RESET} Failed to pull the latest Docker images. Please check your network connection and the Docker registry status, then try again."
108+
exit 1
109+
fi
110+
105111
echo -e "${YELLOW}#${RESET} Forcing recreation of containers..."
106112
if ! docker compose -f /opt/project-nomad/compose.yml up -d --force-recreate; then
107113
echo -e "${RED}#${RESET} Failed to recreate containers. Please check the Docker logs for more details."

0 commit comments

Comments
 (0)