From d5bedf42cfaddd01eba88e267bc0fb8dbc1039ad Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 3 Jun 2018 11:50:45 -0700 Subject: 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 Closes: #887 Approved by: rhatdan --- pkg/hooks/docs/oci-hooks.5.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"] -- cgit v1.2.3-54-g00ecf