@keg-hub/docker-lib

0.0.2 • Public • Published

Docker-Lib

Wrapper around the docker command line executable

Install

With yarn

yarn add @keg-hub/docker-lib

With npm

npm install @keg-hub/docker-lib

Setup

  • Requires docker executable to be installed, and in the $PATH

Example

// Add the docker lib to your script
const { docker } = require('@keg-hub/docker-lib')

// Execute a command on a docker container...
await docker.container.exec({
  ...args
})

// Create a new image from the container
await docker.container.commit({
  ...args
})

// Tag a new image docker image
await docker.image.tag({
  ...args
})

// Push the new image to a remote repository...
await docker.push({
  ...args
})

API

TODO

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.20latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.20
0.0.10

Package Sidebar

Install

npm i @keg-hub/docker-lib

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

101 kB

Total Files

112

Last publish

Collaborators

  • lktipton