denverdino / docker-registry-console

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Web Console for Docker Image Registry

This is simple project to browse and manage the private docker image registry

Run from Source Code

Prerequisite

Install Node.js http://nodejs.org/

Install Redis http://redis.io/

Setup

git clone https://github.com/denverdino/docker-registry-console.git
npm install bower -g
cd docker-registry-console/
npm install
bower install

Config

Update the config.json according to your environment setting.

Run

#Start redis server
redis-server

#Start the web console of Docker registry
npm start

Run as Docker Container

Prerequisite

Install the docker https://docs.docker.com/installation/

Install the docker-compose https://docs.docker.com/compose/install/

Config

Update the docker-compose.yml according to your environment setting.

web:
  build: .
  links:
   - redis
   - registry
  ports:
   - "3000:3000"
  environment:
    DOCKER_HUB_USER: USER_NAME
    DOCKER_HUB_PASSWORD: PASSWORD
  volumes:
    - "/var/run/docker.sock:/var/run/docker.sock"
redis:
  image: redis:latest
registry:
  image: registry:latest
  ports:
    - "5000:5000"
  volumes:
    - "/var/docker-registry-storage:/var/docker-registry-storage"
  environment:
    SETTINGS_FLAVOR: local
    SEARCH_BACKEND: sqlalchemy
    SQLALCHEMY_INDEX_DATABASE: sqlite:////var/docker-registry-storage/docker-registry.db
    STORAGE_PATH: /var/docker-registry-storage

Add "127.0.0.1 registry" to /etc/hosts

Run

docker-compose up

To-do

  1. UI enhancement
  2. Provide the progress notification for syncing image

Unit Testing

npm install nodeunit -g
nodeunit test

License and Authors

Authors: denverdino@gmail.com

About


Languages

Language:JavaScript 45.9%Language:HTML 33.4%Language:CSS 19.2%Language:PHP 0.7%Language:CoffeeScript 0.7%Language:Go 0.1%Language:Python 0.0%Language:Nginx 0.0%Language:ApacheConf 0.0%Language:Shell 0.0%Language:ASP 0.0%