[GH-ISSUE #9814] ollama/ollama Cannot find the configuration file for ollama in the image #32183

Closed
opened 2026-04-22 13:13:32 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @Tu1231 on GitHub (Mar 17, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/9814

I deployed Docker on my server and pulled the ollama/ollama image. After running the ollama/ollama container and deploying the model, I found that the maximum concurrent request count for calling the model was 3. I wanted to set this request count higher in ollama, but I couldn't find the relevant configuration files. When I checked~/. ollama in the container, I only found the history id_ ed25519 id_ ed25519. pub models, and I couldn't find any configuration files related to ollama. I checked the relevant documentation, but I couldn't find any configuration files related to ollama

Originally created by @Tu1231 on GitHub (Mar 17, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/9814 I deployed Docker on my server and pulled the ollama/ollama image. After running the ollama/ollama container and deploying the model, I found that the maximum concurrent request count for calling the model was 3. I wanted to set this request count higher in ollama, but I couldn't find the relevant configuration files. When I checked~/. ollama in the container, I only found the history id_ ed25519 id_ ed25519. pub models, and I couldn't find any configuration files related to ollama. I checked the relevant documentation, but I couldn't find any configuration files related to ollama
Author
Owner

@rick-github commented on GitHub (Mar 17, 2025):

Set configuration environment variables.

services:
  ollama:
    image: ollama/ollama:latest
    environment:
      - OLLAMA_NUM_PARALLEL=5
      - OLLAMA_CONTEXT_LENGTH=5678

or

docker run -d -e OLLAMA_NUM_PARALLEL=5 -e OLLAMA_CONTEXT_LENGTH=5678 ollama/ollama
<!-- gh-comment-id:2729027860 --> @rick-github commented on GitHub (Mar 17, 2025): Set configuration environment variables. ```yaml services: ollama: image: ollama/ollama:latest environment: - OLLAMA_NUM_PARALLEL=5 - OLLAMA_CONTEXT_LENGTH=5678 ``` or ``` docker run -d -e OLLAMA_NUM_PARALLEL=5 -e OLLAMA_CONTEXT_LENGTH=5678 ollama/ollama ```
Author
Owner

@Mohamed0Hegazi commented on GitHub (Mar 17, 2025):

docker run -d -e OLLAMA_NUM_PARALLEL=5 -e OLLAMA_CONTEXT_LENGTH=5678 ollama/ollama

<!-- gh-comment-id:2729058964 --> @Mohamed0Hegazi commented on GitHub (Mar 17, 2025): docker run -d -e OLLAMA_NUM_PARALLEL=5 -e OLLAMA_CONTEXT_LENGTH=5678 ollama/ollama
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#32183