Module ostree_ext::container_utils

source ·
Expand description

Helpers for interacting with containers at runtime.

Functions§

  • Returns true if the current root filesystem has an ostree repository in bare-split-xattrs mode. This will be the case in a running ostree-native container.
  • Returns true if the current booted filesystem appears to be an ostree-native container.
  • Returns an error unless the current filesystem is an ostree-based container
  • Attempts to detect if the current process is running inside a container. This looks for the container environment variable or the presence of Docker or podman’s more generic /run/.containerenv. This is a best-effort function, as there is not a 100% reliable way to determine this.