提交学习笔记专用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
235 B

  1. /**
  2. Check if the process is running inside a Docker container.
  3. @example
  4. ```
  5. import isDocker from 'is-docker';
  6. if (isDocker()) {
  7. console.log('Running inside a Docker container');
  8. }
  9. ```
  10. */
  11. export default function isDocker(): boolean;