NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/is-docker
2023-09-14 14:47:11 +08:00
..
index.d.ts 111 2023-09-14 14:47:11 +08:00
index.js 111 2023-09-14 14:47:11 +08:00
license 111 2023-09-14 14:47:11 +08:00
package.json 111 2023-09-14 14:47:11 +08:00
readme.md 111 2023-09-14 14:47:11 +08:00

is-docker Build Status

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');
}

License

MIT © Sindre Sorhus