Docker Registry Setup
Steps to Setup Docker Registry
-
Create an Azure Docker Registry
-
Create Repositories in Docker Registry
Below is the list of images to be created in the Docker Registry:
- yeedu_reactive_actors
- yeedu_restful_api
- yeedu_rabbitmq
- yeedu_metadata_db
- yeedu_spark
- yeedu_nginx
- yeedu_cfe
- yeedu_redis
- yeedu_telegraf
- yeedu_grafana
- yeedu_influxdb
- yeedu_ldap
-
Pull tar files of Docker Images from Storage Account
Copy the docker image tar files from ADLS2 Storage account to the machine to convert the tars to docker images.
azcopy copy <https://$storage_account_name.blob.core.windows.net/$container_name/path/to/image.tar> <localpath/to/image >
-
Load tar files to Docker Images
Once the tars are copied, run the below command to load each tar file.
docker load -i </path/to/image.tar>
-
Update Docker tag and push to Container Registry
After loading all the tars to docker images, update the docker tag of all images with the name of your container registry and push the image to the specified container registry.
docker tag <image_id> <your_container_registry/repository_name:tag>
docker push <your_container_registry/repository_name:tag>
Examples:
docker tag d5b2815ff14c registry_name.azurecr.io/yeedu_telegraf:1.18-alpine
docker push registry_name.azurecr.io/yeedu_telegraf:1.18-alpine