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

Add support for docker virtualization detection

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: FACT 3.9.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      Platform OS
    • Story Points:
      3
    • Sprint:
      Platform OS 2017-08-09
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      No Action
    • QA Risk Assessment Reason:
      Covered by spec tests

      Description

      Facter currently detects docker by searching for it in in proc/1/cgroup. This cgroup check happens before it attempts to use virt-what, so the behavior is consistent regardless of root/non-root.

      virt-what is also able to detect some versions of docker by looking for a /.dockerinit file, but in the most recent versions of docker, that file is no longer created. Instead, there is a /.dockerenv file. In the interest of avoiding the possible future disappearance of this file, it's probably best to continue to rely on the cgroup check where possible.

        Attachments

          Activity

            People

            Assignee:
            casey.williams Casey Williams
            Reporter:
            casey.williams Casey Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support