Skip to content

jinxidoru/docker-api

This branch is 75 commits behind AgustinCB/docker-api:master.

Folders and files

NameName
Last commit message
Last commit date
Sep 26, 2016
Sep 28, 2016
Sep 28, 2016
Sep 26, 2016
Jul 5, 2016
Jul 5, 2016
Jul 5, 2016
Sep 18, 2016
Jul 5, 2016
Sep 26, 2016
Sep 18, 2016
Sep 19, 2016
Sep 26, 2016
Sep 18, 2016

Repository files navigation

docker-api

travis-ci

Docker Remote API driver for node.js. It uses the same modem than dockerode, but the interface is promisified and with a different syntax.

Support for:

  • streams
  • stream demux
  • entities
  • run
  • tests
  • promises

The current status of the package is in development. From the API reference, there's full support and test for sections 3.1, 3.2, 3.3, 3.4 and 3.5. Support for plugins is added (section 3.6), but it's still experimental in the docker API, so errors may appear.

Check the reference.

Installation

npm install node-docke-api

Usage

Check tests for a more general usage.

const Docker = require('node-docker-api').Docker

let docker = new Docker({ socketPath: '/var/run/docker.sock' })

docker.container.create({ 
  Image: 'ubuntu', 
  name: 'test'
})
  .then((container) => container.start())
  .then((container) => container.fs.put('file.txt'), {
    path: '/root'
  })
  .then((container) => container.stop())

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.5%
  • Shell 0.5%