docs: Update CRI-O hooks documentation
@@ -82,11 +82,24 @@ $ kubectl gadget deploy --image=docker.io/myfork/gadget:tag | kubectl apply -f -
Inspektor Gadget needs to detect when containers are started and stopped.
The different supported modes can be set by using the `hook-mode` option:
-- `auto`(default): Inspektor Gadget will try to find the best option based on the system it is running on.
-- `crio`: Use the [CRIO hooks](https://github.com/containers/podman/blob/v3.0.0-rc3/pkg/hooks/docs/oci-hooks.5.md) support. Inspektor Gadget installs the required hooks in `/usr/share/containers/oci/hooks.d`, be sure that path is part of the `hooks_dir` option on [crio.conf](https://github.com/cri-o/cri-o/blob/v1.20.0/docs/crio.conf.5.md#crioruntime-table). If `hooks_dir` is not declared at all that path is considered by default.
-- `podinformer`: Use a Kubernetes controller to get information about new pods. This option is racy and the first events produced by a container could be lost. This mode is selected when `auto` is used and the above modes are not available.
-- `nri`: Use the [Node Resource Interface](https://github.com/containerd/nri). It requires containerd v1.5 and it's not considered when `auto` is used.
-- `fanotify`: Uses the Linux [fanotify](https://man7.org/linux/man-pages/man7/fanotify.7.html) API. It only works with runc.
+- `auto`(default): Inspektor Gadget will try to find the best option based on
+ the system it is running on.
+- `crio`: Use the [CRIO
+ hooks](https://github.com/containers/podman/blob/v3.4.4/pkg/hooks/docs/oci-hooks.5.md)
+ support. Inspektor Gadget installs the required hooks in
+ `/etc/containers/oci/hooks.d`, be sure that path is part of the `hooks_dir`
+ option on
+ [crio.conf](https://github.com/cri-o/cri-o/blob/v1.20.0/docs/crio.conf.5.md#crioruntime-table).
+ If `hooks_dir` is not declared at all, that path is considered by default.
+- `podinformer`: Use a Kubernetes controller to get information about new pods.
+ This option is racy and the first events produced by a container could be
+ lost. This mode is selected when `auto` is used and the above modes are not
+ available.
+- `nri`: Use the [Node Resource Interface](https://github.com/containerd/nri).
+ It requires containerd v1.5 and it's not considered when `auto` is used.
+- `fanotify`: Uses the Linux
+ [fanotify](https://man7.org/linux/man-pages/man7/fanotify.7.html) API. It only
+ works with runc.
### Specific Information for Different Platforms
