Docker Private Registery
Docker private registry Why we need pvt registry "Security, minimize internet load, speed, control We need to setup registry in three stage , stage one simple stage two secure (with ssl) stage three with authentication Stage one: Step: create directories, need to create below directories a. Create a directory to store docker image b. create a certificate directory c. Auth directory Step :Run a docker registry container Create a container without volume with below command sudo docker run -d -p 5000:5000 --name local-registry registry:2 below is screen shot check in browser: tag the image, command to tag image sudo docker tag centos:7 127.0.0.1:5000/centos:7 Step Push image and check the browser again In ss centos is available, also in container it show as below Stage two Step: create a directory with the name of "docker-registry" then create two direcotries inside it certs data Step: then generate certificate inside certs directory first generate CSR and KEY: su