[GH-ISSUE #4530] How to set OLLAMA_NUM_PARALLEL Environment parameter in ollama docker? #64878

Closed
opened 2026-05-03 19:06:59 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @atptour2024 on GitHub (May 20, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/4530

I want to set OLLAMA_NUM_PARALLEL=10 for ollama docker to handle multiple requests simultaneously. How to set it in the docker run command?

Originally created by @atptour2024 on GitHub (May 20, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/4530 I want to set OLLAMA_NUM_PARALLEL=10 for ollama docker to handle multiple requests simultaneously. How to set it in the docker run command?
GiteaMirror added the question label 2026-05-03 19:06:59 -05:00
Author
Owner

@pdevine commented on GitHub (May 20, 2024):

@atptour2024 You can use:

docker run -d -v ollama:/root/.ollama -p 11434:11434 -e OLLAMA_NUM_PARALLEL=10 --name ollama ollama/ollama

Hope that helps.

<!-- gh-comment-id:2119696566 --> @pdevine commented on GitHub (May 20, 2024): @atptour2024 You can use: ``` docker run -d -v ollama:/root/.ollama -p 11434:11434 -e OLLAMA_NUM_PARALLEL=10 --name ollama ollama/ollama ``` Hope that helps.
Author
Owner

@z7d1 commented on GitHub (Feb 17, 2025):

docker run -d --gpus=all -v ollama:/root/.ollama -p 11434:11434 -e OLLAMA_NUM_PARALLEL=10  --name ollama ollama/ollama

is better.

<!-- gh-comment-id:2661825445 --> @z7d1 commented on GitHub (Feb 17, 2025): ```bash docker run -d --gpus=all -v ollama:/root/.ollama -p 11434:11434 -e OLLAMA_NUM_PARALLEL=10 --name ollama ollama/ollama ``` is better.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#64878