Package Exports
- is-docker
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-docker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
is-docker 
Check if the process is running inside a Docker container
Install
$ npm install is-docker
Usage
const isDocker = require('is-docker');
if (isDocker()) {
console.log('Running inside a Docker container');
}
CLI
$ is-docker
Exits with code 0 if inside a Docker container and 2 if not.