Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass: "exec format error" when trying to login into AWS ECR #314

Open
erich-wittenbeck opened this issue Feb 18, 2024 · 2 comments
Open

Comments

@erich-wittenbeck
Copy link

erich-wittenbeck commented Feb 18, 2024

Greetings! I try to register for the AWS Elastic Container Registry to push my Docker images there.

I tried to use docker-credential-pass, which I downloaded from the Releases-Page (latest version), which I saved under /usr/local/bin/

and configured the ~/.docker/config.json like so:

{
        "credsStore": "pass"
}

When I now execute the premade command for logging into the ECR Repository of my AWS Account:

aws ecr get-login-password --region <my-region> | docker login --username AWS --password-stdin <my-account-id>.dkr.ecr.<my-region>.amazonaws.com

...I get the following error message:

Error saving credentials: error storing credentials - err: fork/exec /usr/local/bin/docker-credential-pass: exec format error, out: ``

So far, I couldn't find anything on that error message.

I'd be gratefull for any help!

@erich-wittenbeck erich-wittenbeck changed the title pass: "exec format error" when trying to login in with ECR pass: "exec format error" when trying to login into ECR Feb 18, 2024
@erich-wittenbeck erich-wittenbeck changed the title pass: "exec format error" when trying to login into ECR pass: "exec format error" when trying to login into AWS ECR Feb 18, 2024
@erich-wittenbeck
Copy link
Author

Ok, so everything seems to be working, when I build docker-credential-pass myself using docker (according to instructions in the main Readme).

Though I'm still wondering, why the executable from the Releases-Page did not work.

@nicks
Copy link
Contributor

nicks commented Feb 18, 2024

"exec format error" usually means you downloaded a binary for the wrong OS or architecture

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants