I am trying to build my custom docker image based on the l4t-base image provided by NGC. I am able to run cuda_sample with my Jeton AGX Xavier on a single container by specifying the –runtime nvidia flag in CLI. However, when I tied to use docker-compose to create a service based on the same l4t-base image, I was not able to run the application with the runtime flag added in my docker-compose.
- node.hostname == k3s-node-xavier
$ docker stack deploy -c docker-compose.yaml --resolve-image never tegra
kev@k3s-node-xavier:tegra$ docker stack deploy -c docker-compose.yaml --resolve-image never tegra
runtime Additional property runtime is not allowed
I also find some useful information from https://devblogs.nvidia.com/gpu-containers-runtime/. It is using the docker-compose version: ‘2.3’. I wonder if it also supports docker-compose version: ‘3’ or above
Any idea of how to solve the issue?