gestion_table_tournante_libre/node_modules/is-docker
2026-10-07 04:29:07 -04:00
..
cli.js Initial commit: Structure de base du projet et fichiers de configuration 2026-10-07 04:29:07 -04:00
index.d.ts Initial commit: Structure de base du projet et fichiers de configuration 2026-10-07 04:29:07 -04:00
index.js Initial commit: Structure de base du projet et fichiers de configuration 2026-10-07 04:29:07 -04:00
license Initial commit: Structure de base du projet et fichiers de configuration 2026-10-07 04:29:07 -04:00
package.json Initial commit: Structure de base du projet et fichiers de configuration 2026-10-07 04:29:07 -04:00
readme.md Initial commit: Structure de base du projet et fichiers de configuration 2026-10-07 04:29:07 -04:00

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.