|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
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.