mirror of
https://github.com/Azure/setup-helm.git
synced 2026-07-06 08:21:37 +00:00
a517f2ff65
Co-authored-by: taakleton <taakleton@users.noreply.github.com>
16 lines
254 B
TypeScript
16 lines
254 B
TypeScript
/**
|
|
Check if the process is running inside a Docker container.
|
|
|
|
@example
|
|
```
|
|
import isDocker = require('is-docker');
|
|
|
|
if (isDocker()) {
|
|
console.log('Running inside a Docker container');
|
|
}
|
|
```
|
|
*/
|
|
declare function isDocker(): boolean;
|
|
|
|
export = isDocker;
|