ollama webui 11434 connection refused

报错:host.docker.internal:11434 ssl:default [Connection refused]

在这里插入图片描述

将/etc/systemd/system/ollama.service中加上如下红框两行
在这里插入图片描述
然后

systemctl daemon-reload
systemctl restart ollama

然后删掉之前的container。

最后

 sudo docker run -d -p 4000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://host.docker.internal:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:main

就可以了!

相关推荐

  1. MT1434 找数字

    2024-06-10 20:02:02       8 阅读
  2. 【NC15434】wyh的迷宫

    2024-06-10 20:02:02       23 阅读
  3. 洛谷 P1434滑雪

    2024-06-10 20:02:02       23 阅读
  4. LeetCode1143. Longest Common Subsequence——动态规划

    2024-06-10 20:02:02       28 阅读
  5. Leetcode 1143 最长公共子序列

    2024-06-10 20:02:02       28 阅读
  6. 1143马的遍历bfs

    2024-06-10 20:02:02       16 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-06-10 20:02:02       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-06-10 20:02:02       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-06-10 20:02:02       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-06-10 20:02:02       18 阅读

热门阅读

  1. 独孤思维:副业圈很多骗子

    2024-06-10 20:02:02       9 阅读
  2. Hive 面试题(九)

    2024-06-10 20:02:02       12 阅读
  3. 力扣395.至少有K个重复字符的最长子串

    2024-06-10 20:02:02       7 阅读
  4. next.js 的几种渲染方式

    2024-06-10 20:02:02       5 阅读
  5. RAG技术在教育领域的应用

    2024-06-10 20:02:02       10 阅读
  6. 关于使用spring boot自带的jackson解析xml心得

    2024-06-10 20:02:02       9 阅读