Closed Rainlv closed 1 year ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
SOLVED! Just add --device /dev/dri:/dev/dri
when creating container.
Full command: sudo docker run -p 3000:3000 --name=webtop --security-opt seccomp=unconfined --gpus=all --device /dev/dri:/dev/dri linuxserver/webtop:ubuntu-xfce
When mounting GPUs in k8s, they rely on the device plugin for scheduling. However, using the --device flag adds all GPUs to the container, which doesn't meet our needs. Is it possible to start a container with gpu without using the --device flag?
Thats a question better asked to the plugin/k8s folks, that has nothing to do with the image.
SOLVED! Just add
--device /dev/dri:/dev/dri
when creating container. Full command:sudo docker run -p 3000:3000 --name=webtop --security-opt seccomp=unconfined --gpus=all --device /dev/dri:/dev/dri linuxserver/webtop:ubuntu-xfce
with it can enable CUDA? or how can enable CUDA in a image with VNC?
Is there an existing issue for this?
Current Behavior
By the way, it could work perfect on my ubuntu20.04 which is physical machine. And it can also work fine without mounting GPU to container.
Steps To Reproduce
run
sudo docker run -p 3000:3000 --name=webtop --security-opt seccomp=unconfined --gpus=all linuxserver/webtop:ubuntu-xfce
on ubuntu18.04 on vSphere6.7 maybe.Environment
/etc/docker/daemon.json
:nvidia-smi
output:CPU architecture
x86-64
Docker creation
Container logs