docker-remote
Wrapper for the Docker remote API and CLI.
Last updated 4 years ago by winton .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install docker-remote 
SYNC missed versions from official npm registry.

DockerRemote

Wrapper for the Docker remote API and CLI.

Usage

DockerRemote = require("docker-remote")

var container = {
	name:  "sidekick",
	build: "bin/build",
	run:   "bin/sidekick",
	env:   { ENV: "production" },
	git:   "git@github.com:winton/sidekick.git#release",
	repo:  "quay.io/winton/sidekick"
};

var args = new DockerRemote.Args(container);
args.cliParams(); // parameters for CLI
args.apiParams(); // parameters for Docker Remote API

var container = new DockerRemote.Container(container);
container.run(); // run container through remote API
container.rm();  // remove container throught remote API

var image = new DockerRemote.Image(container);
image.build();  // build image through CLI
image.create(); // download image through remote API

Options

The container object has the following possible keys:

  • build - The command to run within the Docker container after building the image, before pushing (optional).
  • dockerfile - The directory to discover the Dockerfile (optional).
  • env - Object containing environmental variables (optional).
  • git - A git repository URL string (optional).
  • name - The name of the container (required).
  • ports - An array of port strings in "[host-port]:[container-port]" format (optional).
  • repo - The Docker repository to push to on build (optional).
  • run - The command to run within the Docker container (optional).
  • tags - An array of tags to use when pushing the image (required).
  • volumes - An array of volume strings in "[host-dir]:[container-dir]:[rw|ro]" format (optional).

Dev setup

npm install

Docs

node_modules/.bin/codo lib
open doc/index.html

Current Tags

  • 0.0.29                                ...           latest (4 years ago)

28 Versions

  • 0.0.29                                ...           4 years ago
  • 0.0.28                                ...           4 years ago
  • 0.0.27                                ...           4 years ago
  • 0.0.26                                ...           4 years ago
  • 0.0.25                                ...           4 years ago
  • 0.0.24                                ...           4 years ago
  • 0.0.23                                ...           4 years ago
  • 0.0.22                                ...           4 years ago
  • 0.0.21                                ...           4 years ago
  • 0.0.20                                ...           5 years ago
  • 0.0.19                                ...           5 years ago
  • 0.0.18                                ...           5 years ago
  • 0.0.17                                ...           5 years ago
  • 0.0.15                                ...           5 years ago
  • 0.0.14                                ...           5 years ago
  • 0.0.13                                ...           5 years ago
  • 0.0.12                                ...           5 years ago
  • 0.0.11                                ...           5 years ago
  • 0.0.10                                ...           5 years ago
  • 0.0.9                                ...           5 years ago
  • 0.0.8                                ...           5 years ago
  • 0.0.7                                ...           5 years ago
  • 0.0.6                                ...           5 years ago
  • 0.0.5                                ...           5 years ago
  • 0.0.4                                ...           5 years ago
  • 0.0.3                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (4)
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |