Buckets:
| # is-inside-container | |
| > Check if the process is running inside a container | |
| ## Install | |
| ```sh | |
| npm install is-inside-container | |
| ``` | |
| ## Usage | |
| ```js | |
| import isInsideContainer from 'is-inside-container'; | |
| if (isInsideContainer()) { | |
| console.log('Running inside a container'); | |
| } | |
| ``` | |
| ## CLI | |
| ```sh | |
| is-inside-container | |
| ``` | |
| Exits with code 0 if inside a container and 2 if not. | |
| ## Supported containers | |
| - Docker | |
| - Podman | |
| ## Related | |
| - [is-docker](https://github.com/sindresorhus/is-docker) - Check if the process is running inside a Docker container | |
Xet Storage Details
- Size:
- 547 Bytes
- Xet hash:
- d46f498235cd8ad36fbd24fd23030c54bab4fca2936fa8e2225ea0780c6a9c29
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.