aboutsummaryrefslogtreecommitdiffstats
path: root/docker/nvidia-docker-toolkit/config.toml
diff options
context:
space:
mode:
Diffstat (limited to 'docker/nvidia-docker-toolkit/config.toml')
-rw-r--r--docker/nvidia-docker-toolkit/config.toml34
1 files changed, 34 insertions, 0 deletions
diff --git a/docker/nvidia-docker-toolkit/config.toml b/docker/nvidia-docker-toolkit/config.toml
new file mode 100644
index 0000000..a782015
--- /dev/null
+++ b/docker/nvidia-docker-toolkit/config.toml
@@ -0,0 +1,34 @@
+disable-require = false
+swarm-resource = "DOCKER_RESOURCE_GPU"
+accept-nvidia-visible-devices-envvar-when-unprivileged = true
+accept-nvidia-visible-devices-as-volume-mounts = true
+
+[nvidia-container-cli]
+#root = "/home/devi/nvidia-docker-toolkit"
+#path = "/home/devi/nvidia-docker-toolkit/nvidia-container-cli"
+environment = []
+debug = "/var/log/nvidia-container-toolkit.log"
+#ldcache = "/etc/ld.so.cache"
+load-kmods = true
+no-cgroups = false
+#user = "root:video"
+#ldconfig = "@/sbin/ldconfig.real"
+
+[nvidia-container-runtime]
+#debug = "/var/log/nvidia-container-runtime.log"
+log-level = "info"
+
+# Specify the runtimes to consider. This list is processed in order and the PATH
+# searched for matching executables unless the entry is an absolute path.
+runtimes = [
+ "docker-runc",
+ "runc",
+ "runsc",
+ "nvidia",
+]
+
+mode = "auto"
+
+ [nvidia-container-runtime.modes.csv]
+
+ mount-spec-path = "/etc/nvidia-container-runtime/host-files-for-container.d"