mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-04-05 08:16:16 +02:00
fix(install): ensure update script always pulls latest imgs
This commit is contained in:
parent
275ca80931
commit
80a1d0eef4
|
|
@ -102,6 +102,12 @@ ensure_docker_compose_file_exists() {
|
||||||
}
|
}
|
||||||
|
|
||||||
force_recreate() {
|
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..."
|
echo -e "${YELLOW}#${RESET} Forcing recreation of containers..."
|
||||||
if ! docker compose -f /opt/project-nomad/compose.yml up -d --force-recreate; then
|
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."
|
echo -e "${RED}#${RESET} Failed to recreate containers. Please check the Docker logs for more details."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user