ECR Login

For developers whose base images are kept in AWS ECR, you will have to make sure to log in to your ECR before running Velocity.

A Dockerfile that leverages ECR can look similar to this:

FROM SOMETHING.dkr.ecr.REGION.amazonaws.com/


ENTRYPOINT python /app/main.py

To be able to use that Dockerfile, you should run the following command:

aws ecr get-login-password --region <REGION> | docker login --username AWS --password-stdin <PASSWORD>.dkr.ecr.<REGION>.amazonaws.com

Last updated