fix: run rag service container under x86 architecture (#1876)
This commit is contained in:
@@ -74,7 +74,7 @@ function M.launch_rag_service(cb)
|
|||||||
M.stop_rag_service()
|
M.stop_rag_service()
|
||||||
end
|
end
|
||||||
local cmd_ = string.format(
|
local cmd_ = string.format(
|
||||||
"docker run -d --network=host --name %s -v %s:/data -v %s:/host:ro -e ALLOW_RESET=TRUE -e DATA_DIR=/data -e RAG_PROVIDER=%s -e %s_API_KEY=%s -e %s_API_BASE=%s -e RAG_LLM_MODEL=%s -e RAG_EMBED_MODEL=%s %s %s",
|
"docker run --platform=linux/amd64 -d --network=host --name %s -v %s:/data -v %s:/host:ro -e ALLOW_RESET=TRUE -e DATA_DIR=/data -e RAG_PROVIDER=%s -e %s_API_KEY=%s -e %s_API_BASE=%s -e RAG_LLM_MODEL=%s -e RAG_EMBED_MODEL=%s %s %s",
|
||||||
container_name,
|
container_name,
|
||||||
data_path,
|
data_path,
|
||||||
Config.rag_service.host_mount,
|
Config.rag_service.host_mount,
|
||||||
|
|||||||
Reference in New Issue
Block a user