Add GPU to docker compose

Hello,

I would like to add my Nvidia T400 to the nextcloud container in order to use GPU accelerated face recongnition with the new version of recognize.

I tried as I did for other containers (jellyfin, frigate) but I cannot access to the nvidia-smi interface: the message I have is “/usr/bin: command not found”
But it works with other containers and when I go to /usr/bin inside the container, I see nvidia-smi…

I don’t understand the problem. Thanks in advance for your help

Nextcloud is alpine based, which is not compatible with nvidia-docker.

Thanks for your answer, does it mean that hardware acceleration is also not compatible?