|
hai 3 meses | |
---|---|---|
.. | ||
node_modules | hai 3 meses | |
cli.js | hai 3 meses | |
index.d.ts | hai 3 meses | |
index.js | hai 3 meses | |
license | hai 3 meses | |
package.json | hai 3 meses | |
readme.md | hai 3 meses |
Check if the process is running inside a container
npm install is-inside-container
import isInsideContainer from 'is-inside-container';
if (isInsideContainer()) {
console.log('Running inside a container');
}
is-inside-container
Exits with code 0 if inside a container and 2 if not.