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

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.

Source: Docker Questions