Skip to content

OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.

Python

fix: Factory reset using TUI fails on Windows 11 (WSL) and Podman

Mike Pawlowski53cfb7628888
diff --git a/Makefile b/Makefile
index 3a24ebdbb..de191dfdd 100644
--- a/Makefile
+++ b/Makefile
@@ -521,7 +521,7 @@ factory-reset: ## Complete reset (stop, remove volumes, clear data, remove image
fi; \
echo ""; \
echo "$(YELLOW)Stopping all services and removing volumes...$(NC)"; \
- $(COMPOSE_CMD) down -v --remove-orphans --rmi local || true; \
+ $(COMPOSE_CMD) down -v --remove-orphans || true; \
echo "$(YELLOW)Removing local data directories...$(NC)"; \
if [ -d "opensearch-data" ]; then \
echo "Removing opensearch-data..."; \
diff --git a/docs/docs/_partial-docker-compose-down-and-prune.mdx b/docs/docs/_partial-docker-compose-down-and-prune.mdx
index 179c05259..e1c8b6f11 100644
--- a/docs/docs/_partial-docker-compose-down-and-prune.mdx
+++ b/docs/docs/_partial-docker-compose-down-and-prune.mdx
@@ -4,6 +4,6 @@ docker system prune -f
```
```bash title="Podman"
-podman compose down --volumes --remove-orphans --rmi local
+podman compose down --volumes --remove-orphans
podman system prune -f
```
\ No newline at end of file
diff --git a/src/tui/managers/container_manager.py b/src/tui/managers/container_manager.py
index 91fccceac..c1cf7e374 100644
--- a/src/tui/managers/container_manager.py
+++ b/src/tui/managers/container_manager.py
@@ -1302,7 +1302,7 @@ class ContainerManager:
# Stop and remove everything
success, stdout, stderr = await self._run_compose_command(
- ["down", "--volumes", "--remove-orphans", "--rmi", "local"]
+ ["down", "--volumes", "--remove-orphans"]
)
if not success: