Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kkweon/is-docker-running
NPM module to check if a docker container is running
https://github.com/kkweon/is-docker-running
Last synced: 24 days ago
JSON representation
NPM module to check if a docker container is running
- Host: GitHub
- URL: https://github.com/kkweon/is-docker-running
- Owner: kkweon
- License: mit
- Created: 2018-05-27T07:31:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-27T20:28:38.000Z (over 6 years ago)
- Last Synced: 2024-10-29T08:21:44.118Z (2 months ago)
- Language: TypeScript
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# is-docker-running
[![Build Status](https://travis-ci.org/kkweon/is-docker-running.svg?branch=master)](https://travis-ci.org/kkweon/is-docker-running)A simple library to check if a docker container is running by the name
## Installation
```bash
npm install is-docker-running
``````bash
yarn add is-docker-running
```## Usage
### commonjs
```js
const isDockerRunning = require("is-docker-running");
isDockerRunning.findContainerByName("db"); // returns Promise
```### CLI
```bash
find-docker-by-name ps # ps is not running
```You can check multiples
```bash
find-docker-by-name db webapp
# db is running
# webapp is not running
```