Home:ALL Converter>Using lambda to pull image from Docker hub and push to ECR

Using lambda to pull image from Docker hub and push to ECR

Ask Time:2020-09-17T09:51:19         Author:madu

Json Formatter

Our code deployment pipeline uses ECR to maintain images and there are some public images that we use from Docker hub. We would manually pull the images and then push to ECR. I would like to automate this process by pulling the latest image from Docker hub and pushing it to ECR through Lambda.

Using docker-py Python library seems to one way of doing it. Is there another simpler way to download the image from Docker hub in the Lambda? Thank you.

Author:madu,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/63930152/using-lambda-to-pull-image-from-docker-hub-and-push-to-ecr
yy