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-kdarchlibrary128981semzub@a1um1/pwa-install@ahmed_shaban123/react-native-currencyinput@ahmed-hairon/sharing@adatechnology/react-native-android-getnet-pos@ajorquera/components@ali5049/react-native-buttons@amiruldev/wajsjawwy_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_libtehmusimhujan@baolong281/gsplat@brantalikp/rn-resize@brandung/style-guideyangtao-jsyarn-react-hook-formzona-xzubtesttoday@labiebhn_/react-native-multiplier@lehuyaa/my-assets@react-native-ui-design/button@ponchodien/react-native-printer-imin@sephriot/react-native-persistable-urinative-modal-damage-vehicleori-bot-react-nativeotus-functional-developmentnuxtpaginationspatepangdeuireact-native-android-video-player-viewreact-native-android-viewreact-native-dummy-viewreact-native-ctp-odpreact-native-custom-image-carouselreact-native-custom-poccomponentreact-native-custom-poccomponent-nextreact-native-dff-components-demoreact-native-dimensions-layoutreact-native-conekta-card-tokenizerreact-native-components-designreact-native-custome-component-demoreact-native-escapesedanbosokreact-native-module-argereact-native-nativewindreact-native-ideo-rn-notificationsreact-native-ghn-ekycreact-native-fedlight-dsmreact-native-geo-locatorreact-native-native-audio-enginereact-native-native-ios-test1react-native-remote-updatern-check-btn
1.0.0

3 years ago