# 问题1
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)
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)
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)
这个报错知道是什么原因吗?
我只能注释掉这个配置的部分,但是又不知道这个要怎么处理。
这个问题是因为docker-compose 的版本问题,升级版本到2.23以上就可以解决。
centos 自带 是1.x的
yum install docker-compose 的版本太低,需要升级版本
# 问题2
Error response from daemon: could not select device driver "nvidia" with cap

文章讲述了用户遇到的三个问题:docker-compose配置文件的无效错误,因设备驱动选择错误导致的dockerdaemon问题,以及QAnywhere启动时MySQL连接数限制。解决了这些问题的方法包括升级docker-compose版本、安装nvidia-container-toolkit并配置MySQL的最大连接数。
最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



