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

Not able to login using ecrctl login command #18

Open
iamunnip opened this issue Jul 5, 2023 · 6 comments
Open

Not able to login using ecrctl login command #18

iamunnip opened this issue Jul 5, 2023 · 6 comments

Comments

@iamunnip
Copy link

iamunnip commented Jul 5, 2023

Not able to login using ecrctl login command and showing below error.

> ecrctl login
Failed to log in to ECR: Error response from daemon: client version 1.43 is too new. Maximum supported API version is 1.42
Error: Error response from daemon: client version 1.43 is too new. Maximum supported API version is 1.42

AWS CLI version

> aws --version
aws-cli/2.12.4 Python/3.11.4 Windows/10 exe/AMD64 prompt/off
@surajnarwade
Copy link
Member

@iamunnip ecrctl don't require aws CLI, can you check the docker CLI version ?

@surajnarwade
Copy link
Member

surajnarwade commented Jul 5, 2023

this is my version:

❯ docker version
Client: Docker Engine - Community
 Version:           24.0.2
 API version:       1.43
 Go version:        go1.20.4
 Git commit:        cb74dfc
 Built:             Thu May 25 21:53:42 2023
 OS/Arch:           linux/amd64
 Context:           default

this is interesting, I expected, it won't need Docker CLI

@iamunnip
Copy link
Author

iamunnip commented Jul 5, 2023

@iamunnip ecrctl don't require aws CLI, can you check the docker CLI version ?

here's my version

> docker version
Client:
 Cloud integration: v1.0.31
 Version:           23.0.5
 API version:       1.42
 Go version:        go1.19.8
 Git commit:        bc4487a
 Built:             Wed Apr 26 16:20:14 2023
 OS/Arch:           windows/amd64
 Context:           default

@iamunnip
Copy link
Author

iamunnip commented Jul 5, 2023

Issue fixed.

Updated Docker Desktop to latest version and able to login.

> ecrctl login
Logged in to ECR successfully
> docker version
Client:
 Cloud integration: v1.0.35
 Version:           24.0.2
 API version:       1.43
 Go version:        go1.20.4
 Git commit:        cb74dfc
 Built:             Thu May 25 21:53:15 2023
 OS/Arch:           windows/amd64
 Context:           default

Seems like it needs AWS CLI credentials, below is the error without providing the same.

> ecrctl login
Failed to get authorization token: operation error ECR: GetAuthorizationToken, https response error StatusCode: 400, RequestID: 0951cffe-2e33-4485-be8b-25450bee5ff6, api error UnrecognizedClientException: The security token included in the request is invalid.
Error: operation error ECR: GetAuthorizationToken, https response error StatusCode: 400, RequestID: 0951cffe-2e33-4485-be8b-25450bee5ff6, api error UnrecognizedClientException: The security token included in the request is invalid.

@surajnarwade
Copy link
Member

@iamunnip it needs AWS credentials but not the CLI

@iamunnip
Copy link
Author

iamunnip commented Jul 5, 2023

@iamunnip it needs AWS credentials but not the CLI

Okay got it.

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