NVIDIA / nvidia-docker

Build and run Docker containers leveraging NVIDIA GPUs
Apache License 2.0
17.17k stars 2.03k forks source link

Is it possible to start a stopped container with GPU? #1728

Closed TrueWodzu closed 1 year ago

TrueWodzu commented 1 year ago

1. Issue or feature description

I know that I can run a container with GPU like this: docker run -it --gpus all <image>:<tag>

Is it possible to start a stopped container with GPU support? When I try following command: docker container start -ai --gpus all <container id> I am getting error unknown flag: --gpus

PQLLUX commented 1 year ago

https://github.com/NVIDIA/nvidia-docker/issues/1211 No.