mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-04-23 22:07:07 -04:00
Replace docker detection for cgroup v2
This commit is contained in:
parent
d493f8762f
commit
78d4dee461
1 changed files with 2 additions and 2 deletions
|
@ -78,8 +78,8 @@ namespace NzbDrone.Common.EnvironmentInfo
|
|||
}
|
||||
|
||||
if (IsLinux &&
|
||||
((File.Exists("/proc/1/cgroup") && File.ReadAllText("/proc/1/cgroup").Contains("/docker/")) ||
|
||||
(File.Exists("/proc/1/mountinfo") && File.ReadAllText("/proc/1/mountinfo").Contains("/docker/"))))
|
||||
(File.Exists("/.dockerenv") ||
|
||||
(File.Exists("/proc/1/cgroup") && File.ReadAllText("/proc/1/cgroup").Contains("/docker/"))))
|
||||
{
|
||||
IsDocker = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue