docker-baseimage-gui
docker-baseimage-gui copied to clipboard
Any chance of a version of this based off the ubuntu nvidia docker images?
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!
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.
Also appears to have a relatively modest image size:
docker-xterm latest 24321c44a2ba 6 minutes ago 366MB
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
More details at: https://docs.docker.com/config/containers/resource_constraints/#gpu