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

docker pull works with strace, otherwise creds failure #456

Open
kbalk-maxar opened this issue Dec 7, 2022 · 0 comments
Open

docker pull works with strace, otherwise creds failure #456

kbalk-maxar opened this issue Dec 7, 2022 · 0 comments

Comments

@kbalk-maxar
Copy link

The command docker pull {account-id}.dkr.ecr.{region}.amazonaws.com/{image-id} (with the correct account-id, region and image-id supplied) fails with the error:

Error response from daemon: Head "https://{account-id}.dkr.ecr.{region}.amazonaws.com/v2/{image-id}": 
no basic auth credentials

If I insert strace in front of the docker pull command, the pull is successful.

docker-credential-ecr-login is in my path, I have a ~/.docker/config.json with credsStore set to "ecr-login". The .docker path and file is set to my user's UID and GID.

I also only get a ~/.ecr/log/ecr-login.log when I use strace to run the command.

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

1 participant