New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

docker-registry-downloader

Package Overview
Dependencies
Maintainers
5
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docker-registry-downloader

docker registry downloader

  • 0.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
decreased by-69.23%
Maintainers
5
Weekly downloads
 
Created
Source

Docker Registry Downloader

This package provides several helpers to use Docker APIs.

  • Compare local layers with registry layers

Install


npm i docker-registry-downloader --save

Usage example

var DockerHub   = require('docker-registry-downloader').DockerHub;
var Syncronizer = require('docker-registry-downloader').Syncronizer;
var dockerHub   = new DockerHub();
var syncronizer = new Syncronizer();

syncronizer.initialize().then(function() {
  var namespace   = 'azukiapp';
  var repository  = 'azktcl';
  var tag         = '0.0.2';

  // get token from Docker Hub API
  dockerHub.images(namespace, repository).then(function(hubResult) {
    // check local layers with Docker Registry API
    return syncronizer.getLayersDiff(hubResult, tag).then(function (result) {
      console.log(result);
    });
  });
});


developers come here

run all tests
gulp
filter tests
gulp --grep='should sync azukiapp/azktcl:0.0.2'
enable debug
export DOCKER_REGISTRY_DEBUG_LEVEL=debug
enable request debug
export NODE_DEBUG=request

Keywords

FAQs

Package last updated on 13 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc