chialab / docker-buildx-ecr

A Docker image shipped with tools to build multi-arch images with buildx and authenticate against AWS ECR.
MIT License
3 stars 1 forks source link

How do you use this? #7

Open contentfree opened 1 year ago

contentfree commented 1 year ago

Please update your readme / docs to share how you're using this with buildx. Is it provided during buildx create?

le0m commented 1 year ago

Sorry for the veeeery long delay, I didn't see the issue until now 😞 I added some info on how to use this on the readme.

contentfree commented 1 year ago

How does one provide the info for ECR / docker login? I've done that locally but I'm still unable to successfully push builds up with buildx --push. (I get lots of error: failed to do request: Post "https://xxxx.dkr.ecr.us-east-1.amazonaws.com/v2/my/stuff/blobs/uploads/": EOF

le0m commented 1 year ago

Did you configure your machine to authenticate using aws cli, ie. running aws sts get-caller-identity in a terminal shows your information?

The repository of the aws-ecr-get-login-password binary has a little more information on which environment variables are used to infer authentication. You can also read more on AWS CLI docs.