From f13a84425dcd4d46af4df17576886bc0be85a458 Mon Sep 17 00:00:00 2001 From: rahulguptajss Date: Mon, 12 Aug 2024 17:54:56 +0530 Subject: [PATCH 1/2] doc: add container troubleshooting steps --- docs/install/containers.md | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/docs/install/containers.md b/docs/install/containers.md index e76bfe54c..9ccec844d 100644 --- a/docs/install/containers.md +++ b/docs/install/containers.md @@ -187,7 +187,7 @@ docker compose -f prom-stack.yml -f harvest-compose.yml up -d --remove-orphans ### Stop all containers ``` -docker compose -f prom-stack.yml -f harvest-compose.yml down +docker compose -f prom-stack.yml -f harvest-compose.yml down && docker network rm harvest_backend harvest_frontend ``` If you encounter the following error message while attempting to stop your Docker containers using `docker-compose down` @@ -249,9 +249,25 @@ Make sure you don't skip this step. It is essential as it updates local copies o 4. Restart your containers using the following: -``` -docker compose -f prom-stack.yml -f harvest-compose.yml up -d --remove-orphans -``` + ``` + docker compose -f prom-stack.yml -f harvest-compose.yml up -d --remove-orphans + ``` + + ??? question "Troubleshooting" + + If you encounter the following error: + + ``` + network harvest_backend was found but has incorrect label com.docker.compose.network set to "harvest_backend" + ``` + + Remove the conflicting networks: + + ```sh + docker network rm harvest_backend harvest_frontend + ``` + + Then, restart your containers again using the command above. ## Building Harvest Docker Image From 22b36fbf558aa337970549b1f4722fcbde138d8f Mon Sep 17 00:00:00 2001 From: rahulguptajss Date: Mon, 12 Aug 2024 17:55:46 +0530 Subject: [PATCH 2/2] doc: add container troubleshooting steps --- docs/install/containers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/install/containers.md b/docs/install/containers.md index 9ccec844d..d172b621a 100644 --- a/docs/install/containers.md +++ b/docs/install/containers.md @@ -187,7 +187,7 @@ docker compose -f prom-stack.yml -f harvest-compose.yml up -d --remove-orphans ### Stop all containers ``` -docker compose -f prom-stack.yml -f harvest-compose.yml down && docker network rm harvest_backend harvest_frontend +docker compose -f prom-stack.yml -f harvest-compose.yml down ``` If you encounter the following error message while attempting to stop your Docker containers using `docker-compose down`