프로젝트
GitHub에서 보기
sindresorhus/is-docker
소개
프로세스가 Docker 컨테이너 안에서 실행 중인지 확인합니다.
시스템 및 인프라측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalis-docker
Check if the process is running inside a Docker container
Install
npm install is-docker
Usage
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.
$ is-docker && echo "Running in Docker" || echo "Not running in Docker"
Related
- is-inside-container - Check if the process is running inside a container
관련 프로젝트 살펴보기
불러오는 중…