# Install is-docker with npm

Check if the process is running inside a Docker container. Version 4.0.0 via npm; verified 2025-09-15.

## Install

```sh
sudo av install npm:is-docker
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g is-docker
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:is-docker
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/is-docker>
- **Version:** 4.0.0
- **Source summary:** Check if the process is running inside a Docker container
- **Homepage:** <https://github.com/sindresorhus/is-docker#readme>
- **Repository:** <https://github.com/sindresorhus/is-docker>
- **Upstream docs:** <https://github.com/sindresorhus/is-docker#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/is-docker/-/is-docker-4.0.0.tgz>
- **Issue tracker:** <https://github.com/sindresorhus/is-docker/issues>
- **Published:** 2025-09-15T21:04:08.390Z
- **Last updated:** 2025-09-15T21:04:08.390Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- is-docker (cli)
- is-docker (alias)

## Build dependencies

- esmock
- xo

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.0.0
- Package-manager updated: 2025-09-15
- Local data: ok
- Upstream repository: https://github.com/sindresorhus/is-docker
- notice: The package-manager record has not changed recently.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for is-docker. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 4.0.0
- **Version Count:** 10
- **Maintainers:** sindresorhus
- **Author:** Sindre Sorhus
- **Publisher:** sindresorhus
- **Engines:** Node: >=20
- **Funding:** <https://github.com/sponsors/sindresorhus>
- **Integrity:** sha512-LHE+wROyG/Y/0ZnbktRCoTix2c1RhgWaZraMZ8o1Q7zCh0VSrICJQO5oqIIISrcSBtrXv0o233w1IYwsWCjTzA==
- **Shasum:** 6aab87c77a30ddff39c460af372ee1795aee7848
- **Unpacked Size:** 3,481
- **File Count:** 0
- **Created At:** 2015-04-08T07:09:24.685Z
- **Latest Published At:** 2025-09-15T21:04:08.390Z
- **Modified At:** 2025-09-15T21:04:08.571Z


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Matched curated package taxonomy and local package facts.
- [is-inside-container](https://www.automicvault.com/pkg/npm/is-inside-container/) - Package names and metadata indicate a similar tool family. Shared terms: check, container, detect, docker, dockerized.
- [is-podman](https://www.automicvault.com/pkg/npm/is-podman/) - Package names and metadata indicate a similar tool family. Shared terms: check, container, detect, env, environment.
- [is-in-ci](https://www.automicvault.com/pkg/npm/is-in-ci/) - Package names and metadata indicate a similar tool family. Shared terms: check, detect, environment, if, is.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
