New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can nvidia-docker enable CUDA for images without specific drivers/support built-in? #766

funkypenguin opened this Issue Jun 15, 2018 · 2 comments


None yet
2 participants

funkypenguin commented Jun 15, 2018

Hey guys,

Hopefully a quick question, I'm trying to get my head around nvidia-docker.. emby/embyserver is a container with a version of ffmpeg compiled for CUDA support.

I think from reading #531 that provided I use docker-nvidia wrapper (as opposed to just "docker"), and pass NVIDIA_DRIVER_CAPABILITIES=compute,utility,video as an environment variable, that nvidia-docker will mount the necessary libraries etc into my container "on-the-fly", and ffmpeg will "just work".

Sadly, this is not the case (I've probably misunderstood), and I get our old friend:

[h264_cuvid @ 0x1ec8780] Cannot load
[h264_cuvid @ 0x1ec8780] Failed loading nvcuvid.
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_cuvid) -> h264 (libx264))
  Stream #0:1 -> #0:1 (truehd (native) -> vorbis (libvorbis))
Error while opening decoder for input stream #0:0 : Operation not permitted

Further, is nowhere to be found on the container's filesystem.

Should I be able to do this, or should I be rebuilding an Emby container from nvidia/cuda as a base?



This comment has been minimized.


flx42 commented Jun 15, 2018

The variable that triggers our runtime or not is NVIDIA_VISIBLE_DEVICES=all, so you need to do something like that:

$ docker run -ti --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=all -e NVIDIA_DRIVER_CAPABILITIES=compute,utility,video ubuntu:16.04

This comment has been minimized.

funkypenguin commented Jun 16, 2018

@flx42 flx42 closed this Jun 18, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment