Big news!Introducing Socket AI - ChatGPT-Powered Threat Analysis.Learn more
Socket
Socket

is-docker

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Issues
File Explorer

Advanced tools

is-docker

Check if the process is running inside a Docker container

    3.0.0latest
    GitHub
    npm

Version published
Maintainers
1
Weekly downloads
26,194,828
increased by9.75%

Weekly downloads

Readme

Source

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.

Keywords

FAQs

Last updated on 31 Aug 2021

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.

Install Socket
Socket
Socket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc