mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
hooks/docs: Fix 1.0.0 Nvidia example (adding version, etc.)
Reported by Gary Edwards [1]. Both typos are originally from 68eb128f (pkg/hooks: Version the hook structure and add 1.0.0 hooks, 2018-04-27, #686). [1]: https://github.com/projectatomic/libpod/issues/884#issuecomment-394174571 Signed-off-by: W. Trevor King <wking@tremily.us> Closes: #887 Approved by: rhatdan
This commit is contained in:

committed by
Atomic Bot

parent
fd126d8453
commit
d5bedf42cf
@ -119,6 +119,7 @@ The following example injects `nvidia-container-runtime-hook prestart` with part
|
||||
```console
|
||||
$ cat /etc/containers/oci/hooks.d/nvidia.json
|
||||
{
|
||||
"version": "1.0.0",
|
||||
"hook": {
|
||||
"path": "/usr/sbin/nvidia-container-runtime-hook",
|
||||
"args": ["nvidia-container-runtime-hook", "prestart"],
|
||||
@ -129,7 +130,7 @@ $ cat /etc/containers/oci/hooks.d/nvidia.json
|
||||
},
|
||||
"when": {
|
||||
"annotations": {
|
||||
"^com\.example\.department$": ".*fluid-dynamics$"
|
||||
"^com\\.example\\.department$": ".*fluid-dynamics$"
|
||||
}
|
||||
},
|
||||
"stages": ["prestart"]
|
||||
|
Reference in New Issue
Block a user