Port #10357 to v2
This commit is contained in:
parent
8c3b5690e5
commit
70f56c135c
1 changed files with 1 additions and 1 deletions
|
@ -2288,7 +2288,7 @@ class LinuxVirtual(Virtual):
|
|||
|
||||
if os.path.exists('/proc/1/cgroup'):
|
||||
for line in get_file_lines('/proc/1/cgroup'):
|
||||
if re.search('/docker/', line):
|
||||
if re.search(r'/docker(/|-[0-9a-f]+\.scope)', line):
|
||||
self.facts['virtualization_type'] = 'docker'
|
||||
self.facts['virtualization_role'] = 'guest'
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue