diff options
author | terminaldweller <thabogre@gmail.com> | 2022-06-23 15:04:54 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-06-23 15:04:54 +0000 |
commit | 05c365a54dd074872a6c46f7bd0c6680f7588f71 (patch) | |
tree | d896ea101de423427be13cad55418e793c9d03ee /docker/nvidia-docker-toolkit/oci-nvidia-hook | |
parent | cointop (diff) | |
download | scripts-05c365a54dd074872a6c46f7bd0c6680f7588f71.tar.gz scripts-05c365a54dd074872a6c46f7bd0c6680f7588f71.zip |
updates
Diffstat (limited to '')
-rwxr-xr-x | docker/nvidia-docker-toolkit/oci-nvidia-hook | 2 | ||||
-rw-r--r-- | docker/nvidia-docker-toolkit/oci-nvidia-hook.json | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/docker/nvidia-docker-toolkit/oci-nvidia-hook b/docker/nvidia-docker-toolkit/oci-nvidia-hook new file mode 100755 index 0000000..85b4719 --- /dev/null +++ b/docker/nvidia-docker-toolkit/oci-nvidia-hook @@ -0,0 +1,2 @@ +#!/bin/sh +PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/devi/nvidia-docker-toolkit" exec nvidia-container-toolkit "$@" diff --git a/docker/nvidia-docker-toolkit/oci-nvidia-hook.json b/docker/nvidia-docker-toolkit/oci-nvidia-hook.json new file mode 100644 index 0000000..fb78494 --- /dev/null +++ b/docker/nvidia-docker-toolkit/oci-nvidia-hook.json @@ -0,0 +1,6 @@ +{"version":"1.0.0", + "hook":{"path":"nvidia-container-toolkit", + "args":["nvidia-container-toolkit","prestart"], + "env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/devi/nvidia-docker-toolkit"]}, + "when":{"always":true,"commands":[".*"]}, + "stages":["prestart"]} |