docker-baseimage-gui icon indicating copy to clipboard operation
docker-baseimage-gui copied to clipboard

Any chance of a version of this based off the ubuntu nvidia docker images?

Open Aterfax opened this issue 3 years ago • 3 comments

It would be super useful for a image for this based against the nvidia docker images potentially to accelerate rendering if GPUs are available or as in my case in order to use CUDA to accelerate the program I am running.

This would potentially be extremely useful for people if they wanted to run things like Handbrake as it would enable accelerated transcoding using the nvidia runtime for docker.

At the moment I am tinkering with this to see if I can get it working, but you'd be a lot more familiar with your image!

Aterfax avatar Jul 27 '20 16:07 Aterfax

It would appear that this idea is possible with a little effort - I put together the following and tested with nvidia-smi with success.

https://termbin.com/e60t

The above ties together the appropriate bits from docker-baseimage and docker-baseimage-gui in order with the ubuntu 18.04 nvidia image as base.

image

Also appears to have a relatively modest image size:

docker-xterm latest 24321c44a2ba 6 minutes ago 366MB

Aterfax avatar Jul 27 '20 16:07 Aterfax

For Handbrake there is no need for the CUDA / Nvidia drivers inside the container. Passing --gpus all and setting ENV NVIDIA_DRIVER_CAPABILITIES all is enough.

See my Dockerfile here: https://github.com/zocker-160/handbrake-nvenc-docker

zocker-160 avatar Aug 15 '20 15:08 zocker-160

More details at: https://docs.docker.com/config/containers/resource_constraints/#gpu

jlesage avatar Aug 25 '20 01:08 jlesage