aimpress-chatbot/node_modules/is-docker
“SamoilenkoVadym” 55445dbc86
Some checks failed
Build and deploy Node.js app to Azure Web App - ChatBot2222 / build (push) Has been cancelled
Build and deploy Node.js app to Azure Web App - ChatBot2222 / deploy (push) Has been cancelled
Deploy bot to Azure
2025-04-27 19:55:19 +01:00
..
cli.js Deploy bot to Azure 2025-04-27 19:55:19 +01:00
index.d.ts Deploy bot to Azure 2025-04-27 19:55:19 +01:00
index.js Deploy bot to Azure 2025-04-27 19:55:19 +01:00
license Deploy bot to Azure 2025-04-27 19:55:19 +01:00
package.json Deploy bot to Azure 2025-04-27 19:55:19 +01:00
readme.md Deploy bot to Azure 2025-04-27 19:55:19 +01:00

is-docker

Check if the process is running inside a Docker container

Install

$ npm install is-docker

Usage

import isDocker from '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.