[GH-ISSUE #11698] Error when running gpt-oss:20b in Docker container: function "currentDate" not defined (image: ollama/ollama:0.11.0) #69801

Closed
opened 2026-05-04 19:23:53 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @mishamx on GitHub (Aug 5, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/11698

What is the issue?

I'm encountering an error when trying to run a model using the Docker image ollama/ollama:0.11.0.

Steps to reproduce:

  1. Enter the container:

    docker compose exec ollama bash
    
  2. Check Ollama version:

    ollama -v
    

    Output:

    ollama version is 0.11.0
    
  3. Run the model:

    ollama run gpt-oss:20b
    

Observed behavior:

The following error is returned:

Error: template: :3: function "currentDate" not defined

Expected behavior:

The model should start without errors.

Environment:

  • Docker image: ollama/ollama:0.11.0
  • Model: gpt-oss:20b
  • Ollama version: 0.11.0

Relevant log output

root@dbe306652c3c:/# ollama -v
ollama version is 0.11.0
root@dbe306652c3c:/# ollama run gpt-oss:20b
Error: template: :3: function "currentDate" not defined

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

0.11.0

Originally created by @mishamx on GitHub (Aug 5, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/11698 ### What is the issue? I'm encountering an error when trying to run a model using the Docker image `ollama/ollama:0.11.0`. ### Steps to reproduce: 1. Enter the container: ```bash docker compose exec ollama bash ``` 2. Check Ollama version: ```bash ollama -v ``` Output: ``` ollama version is 0.11.0 ``` 3. Run the model: ```bash ollama run gpt-oss:20b ``` ### Observed behavior: The following error is returned: ``` Error: template: :3: function "currentDate" not defined ``` ### Expected behavior: The model should start without errors. ### Environment: - Docker image: `ollama/ollama:0.11.0` - Model: `gpt-oss:20b` - Ollama version: 0.11.0 ### Relevant log output ```shell root@dbe306652c3c:/# ollama -v ollama version is 0.11.0 root@dbe306652c3c:/# ollama run gpt-oss:20b Error: template: :3: function "currentDate" not defined ``` ### OS Linux ### GPU Nvidia ### CPU Intel ### Ollama version 0.11.0
GiteaMirror added the bug label 2026-05-04 19:23:53 -05:00
Author
Owner

@Igorgro commented on GitHub (Aug 5, 2025):

https://github.com/ollama/ollama/issues/11673#issuecomment-3156244598

<!-- gh-comment-id:3156663534 --> @Igorgro commented on GitHub (Aug 5, 2025): https://github.com/ollama/ollama/issues/11673#issuecomment-3156244598
Author
Owner

@mishamx commented on GitHub (Aug 5, 2025):

The issue was resolved by using a image: ollama/ollama@sha256:37a3975eb2e1cef7ec623f8d54a10625d5140c2c0c6ec8d5bc1d91fc6474d064

<!-- gh-comment-id:3156745562 --> @mishamx commented on GitHub (Aug 5, 2025): The issue was resolved by using a image: ollama/ollama@sha256:37a3975eb2e1cef7ec623f8d54a10625d5140c2c0c6ec8d5bc1d91fc6474d064
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#69801