btc_horse/btc-UI/electron/node_modules/is-docker
2025-07-08 10:33:49 +05:30
..
cli.js Hoese UI needs fixing 2025-07-08 10:33:49 +05:30
index.d.ts Hoese UI needs fixing 2025-07-08 10:33:49 +05:30
index.js Hoese UI needs fixing 2025-07-08 10:33:49 +05:30
license Hoese UI needs fixing 2025-07-08 10:33:49 +05:30
package.json Hoese UI needs fixing 2025-07-08 10:33:49 +05:30
readme.md Hoese UI needs fixing 2025-07-08 10:33:49 +05:30

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.