is-in-docker
A simple module to check if the process is running inside docker or not
Last updated 5 years ago by techgaun .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install is-in-docker 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.2                                ...           latest (5 years ago)

2 Versions

  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 6
Last Month 14
Dependencies (0)
None
Dev Dependencies (3)

Copyright 2014 - 2016 © taobao.org |