First
# Before you begin must be install following packages
sudo apt-get update && sudo apt-get install apache2-utils docker-compose
Then
# Clone the respository
git clone https://github.com/orkunucan/docker-registry-sample.git
cd docker-registry/auth
# We must be create new user
htpasswd -B registry.password domates
# Use the password from the command line rather than prompting for it.
htpasswd -B -b -n hasan hasan
# Return the root repository folder
cd ..
docker-compose up -d
You can access your registry server from following link with your local machine