How to create a fake nvidia
runtime in my installation of docker, so I can run docker-compose
files that specify runtime: nvidia
on my laptop ?
Something that makes docker --runtime=nvidia
equivalent to docker --runtime=runc
?
This would make me able to run containers designed for use with a GPU on my laptop.
Currently, docker-compose
files that specify runtime: nvidia
cause: ERROR: for toto Cannot create container for service toto: Unknown runtime specified nvidia
.
PS: I know this is janky but I need to test the containers, without rewriting docker-compose.yaml
or having multiple docker-compose files if possible.