is-docker-running
v1.0.5
Published
Check if a docker container is running
Downloads
16
Readme
is-docker-running
A simple library to check if a docker container is running by the name
Installation
npm install is-docker-running
yarn add is-docker-running
Usage
commonjs
const isDockerRunning = require("is-docker-running");
isDockerRunning.findContainerByName("db"); // returns Promise<boolean>
CLI
find-docker-by-name ps # ps is not running
You can check multiples
find-docker-by-name db webapp
# db is running
# webapp is not running