is-inside-container
npmv1.0.0TypeScriptCheck if the process is running inside a container (Docker/Podman)
Overview
is-inside-container is an npm package that check if the process is running inside a container (Docker/Podman). The latest version is 1.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 container (Docker/Podman) 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).
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-inside-container.
Dependencies
Runtime (1)
Dev (4)
Used by
Popular packages that depend on is-inside-container.
Alternatives to is-inside-container
Check if the process is running inside a Docker container
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.
Version history
| Version | Published | License |
|---|---|---|
| 1.0.0latest | 3 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install is-inside-container?
Run `npm install is-inside-container` to add is-inside-container to your npm project.
What license is is-inside-container released under?
is-inside-container is distributed under the MIT license.
How popular is is-inside-container?
is-inside-container has approximately 0 downloads per week and 1 known dependent packages.