缘起(报错信息):
在搭建RAG知识库的过程中,用到Ollama框架,在使用其推荐框架open-webui时,想利用本机自带GPU进行加速,于是执行docker命令docker run -d -p 3000:8080 --gpus all -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:cuda
在执行过程中出现如下报错:
Error response from daemon: could not select device driver ““ with capabilities: [[gpu]]
以上是报错发生的过程。
运行环境:
介绍下本机运行环境:
项目 | 参数 |
---|---|
系统 | Ubuntu 20.04.6 LTS |
docker版本 | 27.2.1 |
显卡型号 | NVIDIA GeForce RTX 3060 |