Spaces:
Sleeping
Sleeping
File size: 336 Bytes
d4f5807 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# is-docker
> Check if the process is running inside a Docker container
## Install
```
$ npm install is-docker
```
## Usage
```js
import isDocker from '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.
|