XuelesszzZ 94af2b8e7b 6-30-5 | 1 gadu atpakaļ | |
---|---|---|
.. | ||
cli.js | 1 gadu atpakaļ | |
index.d.ts | 1 gadu atpakaļ | |
index.js | 1 gadu atpakaļ | |
license | 1 gadu atpakaļ | |
package.json | 1 gadu atpakaļ | |
readme.md | 1 gadu atpakaļ |
Check if the process is running inside a Docker container
$ npm install is-docker
const isDocker = require('is-docker');
if (isDocker()) {
console.log('Running inside a Docker container');
}
$ is-docker
Exits with code 0 if inside a Docker container and 2 if not.