Skip to content

codingnanyong/docker-private-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

🐳 Docker Private Registry Web Interface

License: MIT Docker Docker Compose Nginx Registry API React

This document describes the Docker Private Registry web interface.

πŸ“‹ Overview

This web interface is a web-based tool that makes it easy to manage and use Docker Private Registry.

Access URL: http://{REGISTRY_WEB_HOST}:9000 (replace with your actual host when deploying)

🌐 Key Features

1. Home Page (/)

The main page of the Registry resource download server.

Features:

  • SSL/TLS certificate download
  • Install and setup script download
  • Document viewer access
  • Registry image list and Docker Compose files

2. Certificate Download (/certs)

Download SSL certificates required to connect to the Registry.

Download methods:

curl http://{REGISTRY_WEB_HOST}:9000/certs/domain.crt -o domain.crt

Or via web browser:

  • Visit http://{REGISTRY_WEB_HOST}:9000/certs
  • Download the domain.crt file

3. Script Download (/scripts)

Download automation scripts for Docker installation and Registry configuration.

Available scripts (in KOR/ or ENG/ folder):

  • KOR/install-docker.sh / ENG/install-docker.sh – Docker auto-install (Linux/macOS)
  • KOR/setup-docker-registry.sh / ENG/setup-docker-registry.sh – Registry setup (Linux/macOS)
  • KOR/install-docker-windows.bat / ENG/install-docker-windows.bat – Docker Desktop install (Windows)
  • KOR/setup-docker-registry-windows.bat / ENG/setup-docker-registry-windows.bat – Registry setup (Windows)

Download methods:

# Korean (KOR) or English (ENG) folder curl http://{REGISTRY_WEB_HOST}:9000/scripts/KOR/install-docker.sh -o install-docker.sh curl http://{REGISTRY_WEB_HOST}:9000/scripts/KOR/setup-docker-registry.sh -o setup-docker-registry.sh

4. Document Viewer (/docs)

View all Registry-related documentation in the browser.

Available documents:

  • DOCKER_BASICS_GUIDE_KR.md / DOCKER_BASICS_GUIDE_EN.md – Docker & Docker Compose basics
  • DOCKER_INSTALL_GUIDE_KR.md / DOCKER_INSTALL_GUIDE_EN.md – Docker installation guide
  • CERT_DOWNLOAD_GUIDE_KR.md / CERT_DOWNLOAD_GUIDE_EN.md – Certificate download guide
  • EXTERNAL_CLIENT_GUIDE_KR.md / EXTERNAL_CLIENT_GUIDE_EN.md – External client configuration guide
  • REGISTRY_USAGE_GUIDE_KR.md / REGISTRY_USAGE_GUIDE_EN.md – Private Registry usage guide ⭐

Access:

  • http://{REGISTRY_WEB_HOST}:9000/docs
  • Or click "View All Documentation" on the home page

5. Registry Image List (/registry-list)

View all Docker images stored in the Registry, choose tags, and download Dockerfiles or copy pull/run commands.

Features:

  • Image list with tag selector per repository
  • Dockerfile download (for selected tag)
  • Copy pull/run commands (single line or full block)
  • Manual refresh and Garbage Collection hint
  • πŸ—‘οΈ Delete repository (per repo)

Access:

  • http://{REGISTRY_WEB_HOST}:9000/registry-list
  • Or click "View Image List" on the home page

Dockerfile & commands:

  • Use the Dockerfile button to download a regenerated Dockerfile for the selected tag
  • Use the Commands button to open a modal with pull/run commands and copy options

6. Docker Compose List (/compose-list)

Browse and download Docker Compose YAML files served from the server.

Features:

  • List of .yml / .yaml compose files
  • Search filter
  • Download or view file content in a modal
  • Copy file content to clipboard

Access:

  • http://{REGISTRY_WEB_HOST}:9000/compose-list
  • Or click "Docker Compose Files" on the home page

πŸ”§ Tech Stack

  • Web server: Nginx (Alpine), serving built React app
  • Frontend: React 18, Vite
  • Routing: React Router
  • Markdown rendering: marked (in-app)
  • Registry API: Docker Registry API v2

πŸ“ Directory Structure

registry/ β”œβ”€β”€ config/ # Configuration files β”‚ β”œβ”€β”€ nginx-cert-server.conf # Nginx config for cert-server β”‚ └── openssl-san.cnf # OpenSSL SAN config β”œβ”€β”€ docs/ # Markdown documents (served at /docs/) β”‚ β”œβ”€β”€ KOR/ # Korean β”‚ β”‚ β”œβ”€β”€ DOCKER_BASICS_GUIDE.md β”‚ β”‚ β”œβ”€β”€ DOCKER_INSTALL_GUIDE.md β”‚ β”‚ β”œβ”€β”€ CERT_DOWNLOAD_GUIDE.md β”‚ β”‚ β”œβ”€β”€ EXTERNAL_CLIENT_GUIDE.md β”‚ β”‚ └── REGISTRY_USAGE_GUIDE.md β”‚ └── ENG/ # English β”‚ β”œβ”€β”€ DOCKER_BASICS_GUIDE.md β”‚ β”œβ”€β”€ DOCKER_INSTALL_GUIDE.md β”‚ β”œβ”€β”€ CERT_DOWNLOAD_GUIDE.md β”‚ β”œβ”€β”€ EXTERNAL_CLIENT_GUIDE.md β”‚ └── REGISTRY_USAGE_GUIDE.md β”œβ”€β”€ scripts/ # Scripts (served at /scripts/) β”‚ β”œβ”€β”€ KOR/ # Korean β”‚ β”‚ β”œβ”€β”€ install-docker.sh β”‚ β”‚ β”œβ”€β”€ setup-docker-registry.sh β”‚ β”‚ β”œβ”€β”€ install-docker-windows.bat β”‚ β”‚ └── setup-docker-registry-windows.bat β”‚ └── ENG/ # English β”‚ β”œβ”€β”€ install-docker.sh β”‚ β”œβ”€β”€ setup-docker-registry.sh β”‚ β”œβ”€β”€ install-docker-windows.bat β”‚ └── setup-docker-registry-windows.bat β”œβ”€β”€ web/ # Web application β”‚ β”œβ”€β”€ app/ # React app (Vite build β†’ served as SPA) β”‚ β”‚ β”œβ”€β”€ src/ β”‚ β”‚ β”‚ β”œβ”€β”€ components/ # Layout, etc. β”‚ β”‚ β”‚ β”œβ”€β”€ pages/ # Home, Certs, Scripts, DocsViewer, RegistryList, ComposeList β”‚ β”‚ β”‚ β”œβ”€β”€ styles/ # Page-specific CSS β”‚ β”‚ β”‚ β”œβ”€β”€ utils/ # registry helpers β”‚ β”‚ β”‚ β”œβ”€β”€ App.jsx β”‚ β”‚ β”‚ β”œβ”€β”€ main.jsx β”‚ β”‚ β”‚ └── index.css # Global styles β”‚ β”‚ β”œβ”€β”€ index.html β”‚ β”‚ β”œβ”€β”€ package.json β”‚ β”‚ β”œβ”€β”€ vite.config.js β”‚ β”‚ └── Dockerfile # Multi-stage: build + nginx serve β”‚ β”œβ”€β”€ docker/ # Compose YAML files (served at /docker/) β”‚ β”‚ β”œβ”€β”€ example-compose.yml β”‚ β”‚ └── ... β”‚ └── legacy/ # Pre-React static files (reference only) β”‚ β”œβ”€β”€ html/ β”‚ β”œβ”€β”€ js/ β”‚ β”œβ”€β”€ css/ β”‚ └── README.md β”œβ”€β”€ LICENSE β”œβ”€β”€ README.md # This file └── docker-compose.yml # Registry + cert-server 

πŸš€ Getting Started

1. Access the Web Interface

Open the following URL in your browser:

http://{REGISTRY_WEB_HOST}:9000 

2. Download Certificates

  1. Click "Browse Certificates Directory" on the home page, or go to /certs
  2. Download the domain.crt file

3. Download Scripts

  1. Click "Browse Scripts Directory" on the home page, or go to /scripts
  2. Download the scripts you need (Linux/macOS or Windows)

4. View Image List

  1. Click "View Image List" on the home page, or go to /registry-list
  2. Select a tag per repository, then use Dockerfile or Commands as needed
  3. Use the πŸ—‘οΈ Delete button to remove a repository (then run Garbage Collection on the Registry server if needed)

5. Docker Compose Files

  1. Click "Docker Compose Files" on the home page, or go to /compose-list
  2. Search, download, or view compose YAML files

6. Registry Usage (Push/Pull) ⭐

Upload image:

# 1. Tag the image docker tag my-app:latest {REGISTRY_HOST}:5000/my-app:latest # 2. Push to Registry docker push {REGISTRY_HOST}:5000/my-app:latest

Download image:

docker pull {REGISTRY_HOST}:5000/my-app:latest

See Registry Usage Guide (Korean) or REGISTRY_USAGE_GUIDE_EN.md (English) for detailed instructions.

πŸ“– Reading Documentation

  1. Click "View All Documentation" on the home page, or go to /docs
  2. Select the desired document from the dropdown
  3. View the document rendered in Markdown format

πŸ”— Related Links

  • Registry URL: https://{REGISTRY_HOST}:5000
  • Web interface: http://{REGISTRY_WEB_HOST}:9000
  • Certificate download: http://{REGISTRY_WEB_HOST}:9000/certs/
  • Script download: http://{REGISTRY_WEB_HOST}:9000/scripts/
  • Image list: http://{REGISTRY_WEB_HOST}:9000/registry-list
  • Compose files: http://{REGISTRY_WEB_HOST}:9000/compose-list
  • Document viewer: http://{REGISTRY_WEB_HOST}:9000/docs

πŸ”’ Security

  • SSL/TLS certificates are served for download; private key (domain.key) is not exposed via the web
  • Mounted resources (certs, scripts, docs, docker) are read-only (ro) in the container

πŸ› οΈ Troubleshooting

Page fails to load

# Check container status docker ps | grep registry-cert-server # Restart container docker restart registry-cert-server # View logs docker logs registry-cert-server

API requests fail

# Check Registry service status docker ps | grep registry # Verify network connectivity docker network inspect storage_network

πŸ“š Additional Documentation

About

Private Docker registry setup and management tools Complete Docker private registry solution with web interface, SSL configuration, and automated setup scripts for enterprise container management.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors