1.0.0 • Published 3 years ago

is-inside-container v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

is-inside-container

Check if the process is running inside a container

Install

npm install is-inside-container

Usage

import isInsideContainer from 'is-inside-container';

if (isInsideContainer()) {
	console.log('Running inside a container');
}

CLI

is-inside-container

Exits with code 0 if inside a container and 2 if not.

Supported containers

  • Docker
  • Podman

Related

  • is-docker - Check if the process is running inside a Docker container
is-wslopeneasy-select-rnluminos-ui-core@everything-registry/sub-chunk-1933jawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgreact-native-jawwy_samplegriffin-ui-librarytest-library-123test-zeo-collectvision-camera-plugin-face-detectorvantiq-reactcustom-react-app1custom-react-app2jesh-calculationjordy-frijters-test-libimage-carousel-juan-correa-50hong1-utilsinstance-uimangudinlagirajinloading-animated@waynechang65/ptt-crawler@tlgeo/react-native-gdal@thinxviewx/core-rn@toiyabe/grapesjs-blocks-bootstrap-5@titani0us/airbrake@tomw2w/my-nuxt-layeranakketigaanaklanangteaanakwadontea@zotasys/nativeagent-get-agentadarshsinghal-editor-previewawesome-module-kdarchlibrary@ponchodien/react-native-printer-imingenz-native-elementsgerimismalamseninframework_test_library_sixdeeframework_test_library_sixdee_newframework_test_library_sixdee_new_newgassefalsgassefals-2gaurav-react-native-loopgamification-integration-newdomaincomponentdynamics-contracts-xdogandev-simple-toastenefti-galeriexpo-renavigatefawaterak-online-paymentfawatrak-online-paymentfluent.adflow.reactnativesdkfluent.adflow.reactnativesdk-alphafmsl@a1um1/pwa-install128981semzub@baolong281/gsplat@brandung/style-guide@brantalikp/rn-resized-g-component-librarycyberzonecustom-react-app234demo-test-scrn@adatechnology/react-native-android-getnet-pos@ahmed-hairon/sharing@ahmed_shaban123/react-native-currencyinput@aruntestpayment/react-native-payu-payment@ali5049/react-native-buttons@ajorquera/components@amiruldev/wajs@aviinash_jha/react-native-test_multiplyjawwy_library_newjawy_library_v1gamification-jawwy-libraryframework_test_library_sixdee_new_jawwytest_lib_module_aarquickcapture_react_nativern-agora-ios-mmtva-teleport-toolreact-native-omental-frameworkreact-native-sixdee_test_libtehmusimhujanyangtao-jsyarn-react-hook-formzona-xzubtesttodaynative-modal-damage-vehicleori-bot-react-nativeotus-functional-developmentnuxtpaginationspatepangdeuireact-native-android-video-player-viewreact-native-android-viewreact-native-dummy-view
1.0.0

3 years ago