this post was submitted on 07 Dec 2024
6 points (100.0% liked)

Docker

1124 readers
1 users here now

founded 2 years ago
MODERATORS
 

I installed ollama for using AI localy on my computer. And now i want to use OpenWebUI. That needs to be installed in docker, so i did that and it should host a page which is gui for openwebui. And its working but i have this problem: https://github.com/open-webui/open-webui/discussions/4376

So i pasted this command as they say:

docker run -d --network=host -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://127.0.0.1:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:main

But after that it returned this error code: docker: Error response from daemon: Conflict. The container name "/open-webui" is already in use by container "1cbc8ac3b80f2a6921778964f94eff32541a4540ee6ab5d3335427a0fc8366a8". You have to remove (or rename) that container to be able to reuse that name. See 'docker run --help'.

Can anyone help me with this?

top 3 comments
sorted by: hot top controversial new old
[–] relaymoth 7 points 1 month ago* (last edited 1 month ago) (1 children)

Run ‘docker container ls -a’ and you should see the first container still there. Then do ‘docker container rm {insert-container-id-here}’. That will remove the initial container that failed. Rerun your second command and you should be gtg.

Edit: don’t include the quotes.

[–] [email protected] 1 points 1 month ago

Thank you wery much! That solved my problem! And thanks all for replyes and for fast replyes! Long lived lemmy 😁

[–] [email protected] 1 points 1 month ago

You already ran one of those containers so there is a conflict.