aimpress-chatbot/node_modules/is-inside-container
“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-inside-container

Check if the process is running inside a container

Install

npm install is-inside-container

Usage

import isInsideContainer from 'is-inside-container';

if (isInsideContainer()) {
	console.log('Running inside a container');
}

CLI

is-inside-container

Exits with code 0 if inside a container and 2 if not.

Supported containers

  • Docker
  • Podman
  • is-docker - Check if the process is running inside a Docker container