Skip to content

Commit d5bedf4

Browse files
wkingrh-atomic-bot
authored andcommitted
hooks/docs: Fix 1.0.0 Nvidia example (adding version, etc.)
Reported by Gary Edwards [1]. Both typos are originally from 68eb128 (pkg/hooks: Version the hook structure and add 1.0.0 hooks, 2018-04-27, #686). [1]: #884 (comment) Signed-off-by: W. Trevor King <[email protected]> Closes: #887 Approved by: rhatdan
1 parent fd126d8 commit d5bedf4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/hooks/docs/oci-hooks.5.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ The following example injects `nvidia-container-runtime-hook prestart` with part
119119
```console
120120
$ cat /etc/containers/oci/hooks.d/nvidia.json
121121
{
122+
"version": "1.0.0",
122123
"hook": {
123124
"path": "/usr/sbin/nvidia-container-runtime-hook",
124125
"args": ["nvidia-container-runtime-hook", "prestart"],
@@ -129,7 +130,7 @@ $ cat /etc/containers/oci/hooks.d/nvidia.json
129130
},
130131
"when": {
131132
"annotations": {
132-
"^com\.example\.department$": ".*fluid-dynamics$"
133+
"^com\\.example\\.department$": ".*fluid-dynamics$"
133134
}
134135
},
135136
"stages": ["prestart"]

0 commit comments

Comments
 (0)