[GH-ISSUE #7737] Installation script breaks in devcontainer with terminal color issue #30700

Closed
opened 2026-04-22 10:36:16 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @loujaybee on GitHub (Nov 19, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7737

What is the issue?

This PR https://github.com/ollama/ollama/pull/6693 appears to break installation of ollama in a devcontainer.

I can reproduce pretty consistently with some minimal configurations:

devcontainer.json

{
	"dockerFile": "Dockerfile"
}

Dockerfile

FROM mcr.microsoft.com/devcontainers/javascript-node:0-20

# Install Ollama
RUN curl -fsSL https://ollama.com/install.sh | TERM=xterm sh

I believe this is to do with how tput behaves when running in a devcontainer.

I've found the following fixes the issue:
RUN curl -fsSL https://ollama.com/install.sh | TERM=xterm sh

OS

Linux

GPU

Nvidia

CPU

No response

Ollama version

0.4.2

Originally created by @loujaybee on GitHub (Nov 19, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7737 ### What is the issue? This PR https://github.com/ollama/ollama/pull/6693 appears to break installation of ollama in a devcontainer. I can reproduce pretty consistently with some minimal configurations: devcontainer.json ```json { "dockerFile": "Dockerfile" } ``` Dockerfile ```docker FROM mcr.microsoft.com/devcontainers/javascript-node:0-20 # Install Ollama RUN curl -fsSL https://ollama.com/install.sh | TERM=xterm sh ``` I believe this is to do with how `tput` behaves when running in a devcontainer. I've found the following fixes the issue: `RUN curl -fsSL https://ollama.com/install.sh | TERM=xterm sh` ### OS Linux ### GPU Nvidia ### CPU _No response_ ### Ollama version 0.4.2
GiteaMirror added the bug label 2026-04-22 10:36:16 -05:00
Author
Owner

@rick-github commented on GitHub (Nov 19, 2024):

Thanks for the issue, #7739 should resolve it.

<!-- gh-comment-id:2485151061 --> @rick-github commented on GitHub (Nov 19, 2024): Thanks for the issue, #7739 should resolve it.
Author
Owner

@loujaybee commented on GitHub (Nov 20, 2024):

Thanks for the quick fix @rick-github / @dhiltgen ! 🥳

<!-- gh-comment-id:2487803732 --> @loujaybee commented on GitHub (Nov 20, 2024): Thanks for the quick fix @rick-github / @dhiltgen ! 🥳
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#30700