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?

  • relaymoth@sh.itjust.works
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    15 days ago

    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.

    • batman654987@lemmynsfw.comOP
      link
      fedilink
      arrow-up
      1
      ·
      15 days ago

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

  • Gamma@beehaw.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    15 days ago

    Use docker container rm —force “/open-webui” (or a similar command) to remove the running container.

    Also learn compose, your life will be easier