Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-2929

Facter does not correctly detect that it is running inside of a podman container

    XMLWordPrintable

Details

    • Bug
    • Status: Needs Information
    • High
    • Resolution: Unresolved
    • FACT 4.0.44
    • None
    • Facter 4
    • None
    • Rootless podman EL8 instance.

    • Hide

      facter virtual returns podman or docker or container (or something relevant)

      Suggest making it container to cover all of the different cases.

      Show
      facter virtual returns podman or docker or container (or something relevant) Suggest making it container to cover all of the different cases.
    • Night's Watch
    • Needs Assessment
    • Needs Assessment

    Description

      Facter shows the system as physical even when running inside of a rootless podman container.

      The system should detect that it is inside of a container and, ideally, note that it is rootless/rootful.

      The following information seems relevant, but may not be a complete picture:

      • There is a /run/.containerenv mountpoint
      • The SELinux context of any of the root-level filesystems is container_file_t.
      • The contents of /proc/self/cgroup contains libpod (rootful)

      The first two seem to be consistent and the third is the only way that I can tell to determine if you're rootful or rootless.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              peiriannydd Trevor Vaughan
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Zendesk Support