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

    • Type: Bug
    • Status: Needs Information
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: FACT 4.0.44
    • Fix Version/s: None
    • Component/s: Facter 4
    • Labels:
      None
    • Environment:

      Rootless podman EL8 instance.

    • Template:
    • Acceptance Criteria:
      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.
    • Team:
      Night's Watch
    • Method Found:
      Needs Assessment
    • QA Risk 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

              Assignee:
              Unassigned Unassigned
              Reporter:
              peiriannydd Trevor Vaughan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:

                  Zendesk Support