Return to Level1Techs.com

Docker with nvidia-container-toolkit?

Hey everyone! Docker newbie here! I am trying to run a plex docker container (specifically linuxserver/plex) that will support nvdec/nvenc on Arch.

It seems that there is a new way to run nvidia enabled containers since March(?).

All of the documentation states that in order for a container to run with nvidia-container-toolkit it must be run as such:

docker run --gpus all,capabilities=utility nvidia/cuda:9.0-base nvidia-smi

My problem is that I already have a container, I don’t want to do docker run but docker start. Docker start does not seem to support the --gpu flag.

My second problem is that I probably do not want to run a single command.

Can anyone help?

Edit: Nevermind, I had to run docker create again which supports the --gpu flag, it is working now.