mirror of
https://github.com/Radarr/Radarr
synced 2025-02-23 23:01:10 +00:00
Replace docker detection for cgroup v2
(cherry picked from commit 78d4dee4610c5f3f90cc69469004008aa64900b8)
This commit is contained in:
parent
337d01e4ed
commit
2d72c1ef34
1 changed files with 2 additions and 2 deletions
|
@ -78,8 +78,8 @@ public OsInfo(IEnumerable<IOsVersionAdapter> versionAdapters, Logger logger)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsLinux &&
|
if (IsLinux &&
|
||||||
((File.Exists("/proc/1/cgroup") && File.ReadAllText("/proc/1/cgroup").Contains("/docker/")) ||
|
(File.Exists("/.dockerenv") ||
|
||||||
(File.Exists("/proc/1/mountinfo") && File.ReadAllText("/proc/1/mountinfo").Contains("/docker/"))))
|
(File.Exists("/proc/1/cgroup") && File.ReadAllText("/proc/1/cgroup").Contains("/docker/"))))
|
||||||
{
|
{
|
||||||
IsDocker = true;
|
IsDocker = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue