kasmtech / workspaces-issues

18 stars 3 forks source link

kasmweb/chrome镜像 使用--gpus all 无法挂载GPU #584

Open gujianping0531 opened 3 days ago

gujianping0531 commented 3 days ago

使用kasmweb/chrome:1.14.0-rolling镜像时尝试使用--gpus all挂载GPU时 容器启动报错: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"/etc/vulkan/icd.d/nvidia_icd.json\\\" to rootfs \\\"/var/lib/docker/overlay2/9886b5a4d1ce98c3a721d944eda7c00c8643c4af48c8ac2d67234404d292280e/merged\\\" at \\\"/var/lib/docker/overlay2/9886b5a4d1ce98c3a721d944eda7c00c8643c4af48c8ac2d67234404d292280e/merged/etc/vulkan/icd.d/nvidia_icd.json\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

这是我的NVIDIA驱动信息: 16ntdrzu4igddlenhbu42jzkr_0

我在尝试使用--gpus all挂载其他镜像时可以挂载到GPU 2