mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Fix Docker detection (#12565)
This commit is contained in:
@@ -107,7 +107,8 @@ namespace Jackett.Server.Services
|
|||||||
{
|
{
|
||||||
var dockerMsg = "No";
|
var dockerMsg = "No";
|
||||||
const string cgroupFile = "/proc/1/cgroup";
|
const string cgroupFile = "/proc/1/cgroup";
|
||||||
if (File.Exists(cgroupFile) && File.ReadAllText(cgroupFile).Contains("/docker/"))
|
if ((File.Exists(cgroupFile) && File.ReadAllText(cgroupFile).Contains("/docker/"))
|
||||||
|
|| File.Exists("/.dockerenv"))
|
||||||
{
|
{
|
||||||
// this file is created in the Docker image build
|
// this file is created in the Docker image build
|
||||||
// https://github.com/linuxserver/docker-jackett/pull/105
|
// https://github.com/linuxserver/docker-jackett/pull/105
|
||||||
|
Reference in New Issue
Block a user