diff options
author | W. Trevor King <wking@tremily.us> | 2018-06-03 11:50:45 -0700 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-06-04 13:01:56 +0000 |
commit | d5bedf42cfaddd01eba88e267bc0fb8dbc1039ad (patch) | |
tree | a2f7a72ae5bc9b5b47f13a051f012cee05f5cfb9 /pkg/hooks | |
parent | fd126d8453c8790949378c36aa38561b2aea6b4b (diff) | |
download | podman-d5bedf42cfaddd01eba88e267bc0fb8dbc1039ad.tar.gz podman-d5bedf42cfaddd01eba88e267bc0fb8dbc1039ad.tar.bz2 podman-d5bedf42cfaddd01eba88e267bc0fb8dbc1039ad.zip |
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
Diffstat (limited to 'pkg/hooks')
-rw-r--r-- | pkg/hooks/docs/oci-hooks.5.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/hooks/docs/oci-hooks.5.md b/pkg/hooks/docs/oci-hooks.5.md index cdc137641..493e4f157 100644 --- a/pkg/hooks/docs/oci-hooks.5.md +++ b/pkg/hooks/docs/oci-hooks.5.md @@ -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"] |