Docker Registry :

Docker Registry is central repository of all docker image.

Public Registry :

We can pull the image without having any credential.

	
 # pull from public repository 	
	
	docker run image-name
	
	# Example : 
	
	docker run nginx
		

Private Registry :

Private Registry is only accessible through credential.

In order to use the image of private registry we need to first login to the registry using docker login private-registry.io

After successful login we can run the docker pull and push operation. As docker run private-registry.io/apps/image-name will run the image-name image on the system.

How to Deploy Private Registry :

	
 # Deploy our own repository :  	
	
	docker run -d -p 5000:5000 --name registry registry:2
	docker image tag my-image host_ip:5000/my-image
	docker push host_ip:5000/my-image
	
	# Pull the image : 
	docker pull host_ip:5000/my-image