@cjser/is-docker__v3_0_0
v3.0.0-cjser.2
Published
Check if the process is running inside a Docker container
Maintainers
Readme
is-docker
Check if the process is running inside a Docker container
Install
$ npm install is-dockerUsage
import isDocker from 'is-docker';
if (isDocker()) {
console.log('Running inside a Docker container');
}CLI
$ is-dockerExits with code 0 if inside a Docker container and 2 if not.
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/is-docker
