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

Using credsStore (amazon-ecr-credential-helper) for pull/run commands #3217

Open
rayrapetyan opened this issue Jan 15, 2024 · 0 comments
Open

Comments

@rayrapetyan
Copy link

Hello, is there a way to use amazon-ecr-credential-helper when running a new container? Currently I'm getting:

docker.errors.APIError: 500 Server Error for http://mydockerserver:2375/v1.43/images/create?tag=mytag&fromImage=xxxx.dkr.ecr.us-east-1.amazonaws.com%2Ffoo: Internal Server Error ("Head "https://xxxx.dkr.ecr.us-east-1.amazonaws.com/v2/foo/manifests/mytag": no basic auth credentials"

On mydockerserver docker pull works using AWS_PROFILE:

AWS_PROFILE=myawsprofile docker run xxxx.dkr.ecr.us-east-1.amazonaws.com/foo:mytag
Success

Same "no basic auth credentials" error I'm obtaining on mydockerserver when AWS_PROFILE=myawsprofile is not supplied.

So basically passing AWS_PROFILE into the execution context on the remote docker server should resolve the problem, right?

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