Qanything 部署的三个拦路虎问题及相应解决方案。

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

# 问题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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值