Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-podman

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-podman

Check if the process is running inside a Podman container

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
132K
decreased by-0.72%
Maintainers
1
Weekly downloads
 
Created
Source

is-podman

is-podman is an NPM module that checks whether a process is running inside a Podman container. This module is intended to work similarly to sindresorhus' `is-docker module.

Install

$ npm install is-podman

Code Usage

import isPodman = require('is-podman')

if (isPodman()) {
	console.log('Running inside a Podman container')
}

CLI Usage

$ is-podman

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

Testing

Both the code and CLI functionality were tested on WSL in the following environemtnts:

  1. no containerization
  2. Docker
  3. Podman

Behavior was as expected, but no formal tests have been written yet.

Keywords

FAQs

Package last updated on 12 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc