is-inside-container
Advanced tools
Weekly downloads
Readme
Check if the process is running inside a container
npm install is-inside-container
import isInsideContainer from 'is-inside-container';
if (isInsideContainer()) {
console.log('Running inside a container');
}
is-inside-container
Exits with code 0 if inside a container and 2 if not.
FAQs
Check if the process is running inside a container (Docker/Podman)
The npm package is-inside-container receives a total of 4,952,676 weekly downloads. As such, is-inside-container popularity was classified as popular.
We found that is-inside-container demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.