mirror of
https://github.com/Jackett/Jackett
synced 2025-03-10 06:03:09 +00:00
Fix Docker detection (#12565)
This commit is contained in:
parent
39403eb39c
commit
64a78c4965
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue