# dockerRegistry A container image repository using docker. ## How to use ```shell ./registry.sh usage: ./registry.sh options Quickly manage a simple docker registry. OPTIONS: c Create user config s Start registry d Stop registry h Show help ``` ### Create user/password ```shell ./registry.sh c Set User name and press enter:testuser Set Password and press enter:password Name: testuser Password: password. Is this correct? (y/n)y User testuser added to auth/passwd ``` ### Start registry You must create a user/password first. ```shell ./registry.sh s [+] Running 1/1 ✔ Container dockerRegistry Started ``` ### Stop registry ```shell ./registry.sh d [+] Stopping 1/1 ✔ Container dockerRegistry Stopped ``` ### Connect to the registry Example assuming that the IP of the machine where the container is running is 192.168.10.50 ```shell docker login -u testuser -p password 192.168.10.25:5010 ``` ### Upload an image to the registry ```shell docker tag hello-word 192.168.10.25:5010/hello-world:latest docker push 192.168.10.25:5010/hello-world:latest ``` ### Pulling an image from the registry ```shell docker pull 192.168.10.25:5010/hello-world:latest ```