Comparing version 2.2.0 to 2.2.1
@@ -17,6 +17,3 @@ 'use strict'; | ||
try { | ||
const cGroup = fs.readFileSync('/proc/self/cgroup', 'utf8'); | ||
return cGroup.includes('docker') || | ||
cGroup.split('\n').some(line => line.length > 0 && !line.endsWith('/') && !line.endsWith('init.scope')); | ||
return fs.readFileSync('/proc/self/cgroup', 'utf8').includes('docker'); | ||
} catch (_) { | ||
@@ -23,0 +20,0 @@ return false; |
{ | ||
"name": "is-docker", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Check if the process is running inside a Docker container", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3013
40