infiniflow / ragflow

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.
https://ragflow.io
Apache License 2.0
22.63k stars 2.22k forks source link

[Question]: Ragflow Compatibility with Docker on Windows and Adjusting vm.max_map_count #1222

Open lzivan opened 4 months ago

lzivan commented 4 months ago

Describe your problem

Dear Ragflow team,

I’m working on a project involving Ragflow and I have a couple of questions regarding its compatibility with Docker on a Windows environment.

1.Compatibility with Docker on Windows:

2.Adjusting vm.max_map_count on Windows:

Any insights or additional documentation you can provide would be greatly appreciated. Thank you!

aopstudio commented 4 months ago
  1. Yes
  2. ·vm.max_map_count is for Linux. If you run Ragflow on Docker for Windows successfully, then you can ignore it. If elasticsearch can't be started, you can edit your .wslconfig file⁠ to allocate more resources (especially memory) for Docker (assuming you use WSL2 rather than hyper-v as Docker's backend engine).
Defozo commented 2 months ago

I've used the solution from here: https://stackoverflow.com/questions/42111566/elasticsearch-in-windows-docker-image-vm-max-map-count And it started without any problems.

I have been stuck for months on this problem, the solution is launch the following commands on cmd.exe (try Powershell or Bash if cmd doesn't work), as stated in the official Elasticsearch documentation:

1) wsl -d docker-desktop 2) sysctl -w vm.max_map_count=262144 And you are ready to start Elasticsearch!