Last change
on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
254 bytes
|
Line | |
---|
1 | /**
|
---|
2 | Check if the process is running inside a Docker container.
|
---|
3 |
|
---|
4 | @example
|
---|
5 | ```
|
---|
6 | import isDocker = require('is-docker');
|
---|
7 |
|
---|
8 | if (isDocker()) {
|
---|
9 | console.log('Running inside a Docker container');
|
---|
10 | }
|
---|
11 | ```
|
---|
12 | */
|
---|
13 | declare function isDocker(): boolean;
|
---|
14 |
|
---|
15 | export = isDocker;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.