I would like to restart a docker container, after exiting it and rebooting, with the same runtime with which it was initially created.
Here's what I did so far.
Create the container:
sudo docker run --runtime=nvidia [...]
Restart Docker after exiting the container and rebooting:
service docker restart
Restart the container previously created:
sudo docker start my_container
Reopen the container.
docker exec -it my_container [...]
The program which is then launched in the container doesn't use the Nvidia GPU as expected. It instead uses the system CPU.
Any help would be greatly appreciated.