[GH-ISSUE #1089] Can't get it to use GPU in docker #539

Closed
opened 2026-04-12 10:13:44 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @pdavis68 on GitHub (Nov 11, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1089

I have a RTX 3050...

I went through the install and it works from the command-line, but using the CPU.

When I try running this last step, though (after shutting down the container):

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

I get: Error response from daemon: Conflict. The container name "/ollama" is already in use by container "60d73a071b8a28b47b2593dd459338fa9d6002b0f7ac041267e2c79114091e6f". You have to remove (or rename) that container to be able to reuse that name.

How do I get it to use the GPUs now that it's installed?

Originally created by @pdavis68 on GitHub (Nov 11, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1089 I have a RTX 3050... I went through the install and it works from the command-line, but using the CPU. When I try running this last step, though (after shutting down the container): docker run -d --gpus=all -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama I get: Error response from daemon: Conflict. The container name "/ollama" is already in use by container "60d73a071b8a28b47b2593dd459338fa9d6002b0f7ac041267e2c79114091e6f". You have to remove (or rename) that container to be able to reuse that name. How do I get it to use the GPUs now that it's installed?
Author
Owner

@orkutmuratyilmaz commented on GitHub (Nov 11, 2023):

@pdavis68 which OS do you use?

<!-- gh-comment-id:1806873496 --> @orkutmuratyilmaz commented on GitHub (Nov 11, 2023): @pdavis68 which OS do you use?
Author
Owner

@orkutmuratyilmaz commented on GitHub (Nov 11, 2023):

also, if you want to use "ollama" name as your container name, you better delete the other container.

<!-- gh-comment-id:1806873842 --> @orkutmuratyilmaz commented on GitHub (Nov 11, 2023): also, if you want to use "ollama" name as your container name, you better delete the other container.
Author
Owner

@pdavis68 commented on GitHub (Nov 11, 2023):

Sorry, I thought I closed this comment. I got confused in the install I'm running it in docker under windows. I posted a new issue after the install completed regarding some possible instruction clarifications.

<!-- gh-comment-id:1806876698 --> @pdavis68 commented on GitHub (Nov 11, 2023): Sorry, I thought I closed this comment. I got confused in the install I'm running it in docker under windows. I posted a new issue after the install completed regarding some possible instruction clarifications.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#539