From 9302f8951e6b08785750dc4e80cd686f5330c07a Mon Sep 17 00:00:00 2001 From: jeanr Date: Mon, 13 Oct 2025 13:56:20 +0200 Subject: [PATCH] Add a documentation entry about hooks for podman-run Add a documentation entry about hooks for podman-run, by documenting the hooks-dir argument. Fixes: #27281 Signed-off-by: Jean Rabault --- docs/source/markdown/options/hooks-dir.run.md | 9 +++++++++ docs/source/markdown/podman-run.1.md.in | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 docs/source/markdown/options/hooks-dir.run.md diff --git a/docs/source/markdown/options/hooks-dir.run.md b/docs/source/markdown/options/hooks-dir.run.md new file mode 100644 index 00000000000..992fc28be06 --- /dev/null +++ b/docs/source/markdown/options/hooks-dir.run.md @@ -0,0 +1,9 @@ +####> This option file is used in: +####> podman run +####> If file is edited, make sure the changes +####> are applicable to all of those. +#### **--hooks-dir** + +Specify directories containing OCI (Open Container Initiative) hook configuration files. + +Each `*json*` file in the path configures a OCI hook for Podman containers. Read the documentation for more information about the [the different hook properties and configuration](https://specs.opencontainers.org/runtime-spec/config/#posix-platform-hooks). diff --git a/docs/source/markdown/podman-run.1.md.in b/docs/source/markdown/podman-run.1.md.in index 7f2750019e5..74a2c9b21b6 100644 --- a/docs/source/markdown/podman-run.1.md.in +++ b/docs/source/markdown/podman-run.1.md.in @@ -238,6 +238,8 @@ See [**Environment**](#environment) note below for precedence and examples. Print usage statement +@@option hooks-dir.run + @@option hostname.container @@option hosts-file