oci-playground/freebsd-podman-testing

Possibly ambiguous config item in containers/container.conf

matias-pizarro opened this issue · 0 comments

Not a bug but ambiguous: including a commented value for hooks_dir in containers.conf seems to imply it is the default.
It is however not the case with FreeBSD where, unless hooks_dir is uncommented and explicitly set, the project default is used /usr/share/containers/oci/hooks.d

with

# Path to OCI hooks directories for automatically executed hooks.
#
#hooks_dir = [
#  "/usr/local/share/containers/oci/hooks.d",
#]

podman run --debug (...) results in

DEBU[0000] reading hooks from /usr/share/containers/oci/hooks.d 

Configuration is honoured correctly: with

# Path to OCI hooks directories for automatically executed hooks.
#
hooks_dir = [
  "/usr/local/share/containers/oci/hooks.d",
]

podman run --debug (...) results in

DEBU[0000] reading hooks from /usr/local/share/containers/oci/hooks.d