GithubHelp home page GithubHelp logo

la-docker-registry's Introduction

Docker Registry + UI

Requirements

  • Docker (Docker version 17.12.0-ce) or higher
  • Docker compose (docker-compose version 1.11.2) or higher

Configure custom registry

  • $ cp docker-compose.override.yml.dist docker-compose.override.yml
  • Now we access our auth/ directory and start configuration our credentials using htpasswd:
  • cd auth && docker run --rm --entrypoint htpasswd registry:2 -Bbn username password > htpasswd
  • Verify:
  • $ cat htpasswd
  • username:$2y$05$mnaMdOsL7RCjyhTwYnGSp.7OUmZyd2EYLYj0WWKGKSpcVCl9
  • Build docker containers: docker-compose up -d --build

Perform a docker login

  • docker login -u username http://localhost:5000

Test publish to Docker Registry

  • Pull example image: docker pull busybox
  • Tag example image with localhost:5000 which represents URL of custom Docker Registry: docker tag busybox localhost:5000/busybox
  • Remove old image: docker rmi busybox
  • Publish new image to custom Docker Registry docker push localhost:5000/busybox

Test pull from Docker Registry

  • Remove pushed image: docker rmi localhost:5000/busybox
  • Pull pushed image: docker pull localhost:5000/busybox

Manage Docker Registry

  • List images via REST API: http://localhost:5000/v2/_catalog
  • User Web UI: http://localhost:<port>/

Delete image

  • Delete via UI: http://localhost:<port>
  • Run GC command: docker exec -it registry bin/registry garbage-collect /etc/docker/registry/config.yml

Add certs via Certbot

  • certbot certonly --keep-until-expiring --standalone -d domain.example.com --email [email protected]
  • Rename SSL certificates:
  • cd /etc/letsencrypt/live/domain.example.com/
  • cp privkey.pem /path/certs/registry.key
  • cat cert.pem chain.pem > /path/certs/registry.crt

la-docker-registry's People

Contributors

lyovkin avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.