docker-registry-api
a javascript native promise based node wrapper for working with a local instance of the docker registry api
Install
npm install docker-registry-api --save
Init
var dockerRegistry = ; var options = user: "" password: "" baseURL: ""; ;
Options
user
: The User to sign into the registry withpassword
: The Password to sign into the registry withbaseURL
: The URL for the registry. eg:hub.docker.com
port
: The Port Number to connect to. Default:5000
timeout
: Timeout value in milliseconds. Default15000
verbose
: Log console actions taken (for debugging). Defaultfalse
each option has a get
and set
method in camel case (dockerRegistry(options).setVerbose(true)
).
Usage
List of Repositories
;
List of Tags for a Repository
var repository = "hello-world";tagsrepository;
Manifests Details for a Repository
var repository = "hello-world";var tag = "latest";;