Icard/angular-clarity-master(work.../node_modules/is-docker
realSnehal 400e0876de frontend 2024-07-16 20:25:36 +05:30
..
cli.js frontend 2024-07-16 20:25:36 +05:30
index.d.ts frontend 2024-07-16 20:25:36 +05:30
index.js frontend 2024-07-16 20:25:36 +05:30
license frontend 2024-07-16 20:25:36 +05:30
package.json frontend 2024-07-16 20:25:36 +05:30
readme.md frontend 2024-07-16 20:25:36 +05:30

readme.md

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.