🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

is-in-docker

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-in-docker

A simple module to check if the process is running inside docker or not

0.1.2
latest
Source
npm
Version published
Weekly downloads
20
-31.03%
Maintainers
1
Weekly downloads
 
Created
Source

is-in-docker Build Status

Check if the process is running inside or outside of docker container

Install

$ npm install --save is-in-docker

Usage

var isInDocker = require('is-in-docker');

if (isInDocker()) {
    console.log('I am running inside docker container');
}

License

MIT © techgaun

Keywords

docker

FAQs

Package last updated on 20 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts