Video coming soonโฆ
๐จโ๐ป Setup Docker Registry + Web UI โ Your Own Image Registry
Deploy a private Docker Registry on Ubuntu with a web UI โ push and pull your own container images with htpasswd authentication, without relying on Docker Hub.
โ ๏ธ This script is provided for demo and testing purposes only. Not intended for production use.
๐ฆ Resources & Setup Scripts
Grab the automated bash script from GitHub to follow along with the video.
Quick Install:
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/dev/registry/registry-ubuntu.sh
chmod +x registry-ubuntu.sh
sudo bash registry-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/dev/registry/registry-ubuntu.sh
2 Make it Executable
chmod +x registry-ubuntu.sh
3 Run the Installer
The script installs Docker if needed, generates an htpasswd file with the username admin and a random password, then starts registry:2 on port 5011 and the joxit/docker-registry-ui web interface on port 8213.
sudo bash registry-ubuntu.sh
4 Log In and Push an Image
Authenticate against the registry with the generated credentials, then tag and push an image:
docker login <your-server-ip>:5011
docker tag nginx:latest <your-server-ip>:5011/nginx:latest
docker push <your-server-ip>:5011/nginx:latest
Ports Used
| Port | Purpose |
|---|---|
| 5011 | Registry API โ docker login/push/pull (host โ container 5000) |
| 8213 | Web UI (joxit/docker-registry-ui, host โ container 80) |