Go to file
2019-08-14 14:19:46 +02:00
test fix(core): update 2019-01-10 00:28:12 +01:00
ts fix(core): update 2019-08-14 14:19:45 +02:00
.gitignore improve README 2017-04-02 12:05:29 +02:00
.gitlab-ci.yml fix(core): update 2019-01-10 00:43:45 +01:00
.npmignore start Dockerfile for tests 2016-06-14 08:49:13 +02:00
docker-compose.yml fix(core): shift to new style 2018-07-16 23:52:50 +02:00
LICENSE Initial commit 2016-04-12 12:40:06 +02:00
npmextra.json fix(core): update 2019-01-10 00:37:32 +01:00
package-lock.json 1.0.32 2019-08-14 14:19:46 +02:00
package.json 1.0.32 2019-08-14 14:19:46 +02:00
README.md fix(core): shift to new style 2018-07-16 23:52:50 +02:00
tslint.json fix(core): update 2019-01-10 00:24:35 +01:00

@mojoio/dockersock

easy communication with docker remote api from node, TypeScript ready

Availabililty

npm git git docs

Status for master

build status coverage report npm downloads per month Dependency Status bitHound Dependencies bitHound Code TypeScript node JavaScript Style Guide

Usage

Use TypeScript for best in class instellisense.

import {Dockersock} from "dockersock"; // require Dockersock class

let myDockersock = new Dockersock(); // optional: you can pass a domain to the contructor, defaults to  /var/run/docker.sock

myDockersock.listContainers() // promise, resolve gets container data
myDockersock.listContainersDetailed() // promise, resolve gets more detailed container data (by combining several requests internally)
myDockersock.listContainersRunning() // promise, resolve gets container data for currently running containers
myDockersock.listContainersStopped() // promise, resolve gets container data for stopped containers

myDockersock.startContainer({ // starts a already present container
    name: "somecontainername"
})

myDockersock.newContainer({ // start new Container, equals "docker run" shell command
    image: "someimagetag"
})

For further information read the linked docs at the top of this README.

MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy

repo-footer