is-docker
npmv4.0.0TypeScriptCheck if the process is running inside a Docker container
Overview
is-docker is an npm package that check if the process is running inside a Docker container. The latest version is 4.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need check if the process is running inside a Docker container and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Lean dependency tree (2 direct dependencies).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of is-docker.
Dependencies
Dev (2)
Used by
Popular packages that depend on is-docker.
Alternatives to is-docker
Check if the process is running inside a container (Docker/Podman)
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
Get paths for storing things like data, config, cache, etc
Get and typecast environment variables.
Check if something is a generator function
Strip comments from JSON. Lets you use comments in your JSON files!
Get the PATH environment variable key cross-platform
Get details about the current Continuous Integration environment
Offers getProxyForUrl to get the proxy URL for a URL, respecting the *_PROXY (e.g. HTTP_PROXY) and NO_PROXY environment variables.
Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag
A Promise-based interface into processes created by child_process.spawn
Is this an arguments object? It's a harder question than you think.
Frequently installed together
An HTTP(s) proxy `http.Agent` implementation for HTTPS
TypeScript definitions for cors
Node.js CORS middleware
TypeScript definitions for node
A stand-alone types package for Undici
Port of jQuery.extend for node.js and the browser
Fast, unopinionated, minimalist web framework
A light-weight module that brings Fetch API to node.js
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
Version history
| Version | Published | License |
|---|---|---|
| 4.0.0latest | 10 months ago | MIT |
| 3.0.0 | 4 years ago | MIT |
| 2.2.1 | 5 years ago | MIT |
| 2.2.0 | 5 years ago | MIT |
| 2.1.1 | 6 years ago | MIT |
| 2.1.0 | 6 years ago | MIT |
| 2.0.0 | 7 years ago | MIT |
| 1.1.0 | 9 years ago | MIT |
| 1.0.1 | 10 years ago | MIT |
| 1.0.0 | 11 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install is-docker?
Run `npm install is-docker` to add is-docker to your npm project.
What license is is-docker released under?
is-docker is distributed under the MIT license.
How popular is is-docker?
is-docker has approximately 0 downloads per week and 1 known dependent packages.