Spaces:
Paused
Paused
|
Download node_modules/is-docker/readme.md from Shreyansh327/mcp-client: direct link, hf CLI and curl.
- Browser
- Download file 336 Bytes
-
https://huggingface.co/spaces/Shreyansh327/mcp-client/resolve/main/node_modules/is-docker/readme.md
- Command line
-
hf download hf://spaces/Shreyansh327/mcp-client/node_modules/is-docker/readme.md
-
curl -L -o readme.md https://huggingface.co/spaces/Shreyansh327/mcp-client/resolve/main/node_modules/is-docker/readme.md
336 Bytes
| # is-docker | |
| > Check if the process is running inside a Docker container | |
| ## Install | |
| ``` | |
| $ npm install is-docker | |
| ``` | |
| ## Usage | |
| ```js | |
| import isDocker from 'is-docker'; | |
| if (isDocker()) { | |
| console.log('Running inside a Docker container'); | |
| } | |
| ``` | |
| ## CLI | |
| ``` | |
| $ is-docker | |
| ``` | |
| Exits with code 0 if inside a Docker container and 2 if not. | |