Go to file
2016-07-11 17:54:29 +02:00
dist implement .createContainer() 2016-06-17 02:38:00 +02:00
test update timeout 2016-07-11 17:44:02 +02:00
ts implement .createContainer() 2016-06-17 02:38:00 +02:00
.gitignore update 2016-06-14 09:17:07 +02:00
.gitlab-ci.yml prepare for in docker test trough npmts 2016-06-16 02:41:17 +02:00
.npmignore start Dockerfile for tests 2016-06-14 08:49:13 +02:00
docker-compose.yml add tests with in docker 2016-06-16 04:18:10 +02:00
Dockerfile add tests with in docker 2016-06-16 04:18:10 +02:00
LICENSE Initial commit 2016-04-12 12:40:06 +02:00
npmts.json update test Environment 2016-06-16 01:56:53 +02:00
package.json 1.0.8 2016-07-11 17:54:29 +02:00
README.md update structure 2016-06-16 00:40:32 +02:00

dockersock

easy communication with docker from node, TypeScript ready

Status

build status

Usage

We recommend the use of TypeScript for best Intellisense.

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"
})