netease-youdao / QAnything

Question and Answer based on Anything.
https://qanything.ai
GNU Affero General Public License v3.0
11.67k stars 1.13k forks source link

ERROR: The Compose file './docker-compose-linux.yaml' is invalid because: services.qanything_local.deploy.resources.reservations value Additional properties are not allowed ('devices' was unexpected)[BUG] <title> #66

Open b420478805 opened 9 months ago

b420478805 commented 9 months ago

是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?

该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?

当前行为 | Current Behavior

ERROR: The Compose file './docker-compose-linux.yaml' is invalid because: services.qanything_local.deploy.resources.reservations value Additional properties are not allowed ('devices' was unexpected)[BUG] 请问需要在哪里配置显卡编号,怎么操作

期望行为 | Expected Behavior

No response

运行环境 | Environment

- OS:
- NVIDIA Driver:
- CUDA:
- Docker Compose:
- NVIDIA GPU Memory:

QAnything日志 | QAnything logs

No response

复现方法 | Steps To Reproduce

No response

备注 | Anything else?

No response

ljhssga commented 9 months ago

应该是docker-compose版本的问题

b420478805 commented 9 months ago

应该是docker-compose版本的问题

需要什么版本才可以

jinghao2eebd commented 9 months ago

修改run.sh里面 docker-compose 为 docker compose 试试呢

writebar commented 8 months ago

修改文件名:docker-compose-linux.yaml --> docker-compose.yaml

lvzhiqiang commented 8 months ago

The latest v2.24.3 docker-compose works for me.

android-A-studio commented 8 months ago

POPO20240221-175415 同问,改了也不行,run.sh报错The Compose file './docker-compose-linux.yaml' is invalid because: services.qanything_local.deploy.resources.reservations value Additional properties are not allowed ('devices' was unexpected)

(venv) lll@GIH-D-20833:~/ai_dir/QAnything$ ./run.sh 来自 https://gitee.com/netease-youdao/QAnything

woshituobaye commented 7 months ago

修改run.sh里面 docker-compose 为 docker compose 试试呢

谢谢 改了之后好了 请问这是什么原因呢?

62bit commented 7 months ago

我是在Docker Desktop中勾选了这个👇解决了: 图片

KeldonWu commented 6 months ago

我也出现了这个问题 改完文件名会发现:unknown docker command: "compose compose-linux.yaml" 然后还是跑不了

Warit314 commented 6 months ago

Guys, if anyone stuck on this. There is a chance that docker-compose version is too old. try pip install --upgrade docker-compose, or update it I had been stuck at this problem for hours. hope this helps