e 92fdcc4d2a ts 10 tháng trước cách đây
..
node_modules 92fdcc4d2a ts 10 tháng trước cách đây
cli.js 92fdcc4d2a ts 10 tháng trước cách đây
index.d.ts 92fdcc4d2a ts 10 tháng trước cách đây
index.js 92fdcc4d2a ts 10 tháng trước cách đây
license 92fdcc4d2a ts 10 tháng trước cách đây
package.json 92fdcc4d2a ts 10 tháng trước cách đây
readme.md 92fdcc4d2a ts 10 tháng trước cách đây

readme.md

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

Related

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