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 login doesn't work on macOS High Sierra #2211

Closed
NeilMenne opened this issue Nov 8, 2017 · 10 comments
Closed

docker login doesn't work on macOS High Sierra #2211

NeilMenne opened this issue Nov 8, 2017 · 10 comments

Comments

@NeilMenne
Copy link

Expected behavior

docker login completes

Actual behavior

error getting credentials - err: signal: segmentation fault, out: ``

Information

Diagnostic ID: CBB68278-7E6B-47E8-A48D-D265B0DB1052

Steps to reproduce the behavior

  1. upgrade to macos high sierra
  2. docker login (I am attempting to setup docker credentials for AWS like eval "$(aws ecr get-login --region us-east-1| sed -e 's/-e none//g')")
@guillaumerose
Copy link
Contributor

Does it use custom client certificates (located in ~/.docker/certs.d) ?

@NeilMenne
Copy link
Author

No, it doesn't. It creates a docker login command like docker login -u AWS -p ....

@mowreyw
Copy link

mowreyw commented Nov 20, 2017

I am seeing the same issue. Login using eval $(aws ecr get-login) has been broken since moving to macOS High Sierra. A login command with temporary password is generated, but fails with exit status 1 , out: The user name or passphrase you entered is not correct

@FrenchBen
Copy link

FrenchBen commented Nov 20, 2017

The issue here is the lack of update from the AWS CLI, more than likely due to the fact that they run an older version of Docker in their offering.
This has been documented as a deprecated command for a while (1.11.0) and removed in 17.06, see:
https://docs.docker.com/engine/deprecated/#-e-and---email-flags-on-docker-login

There have been a couple of reports of it here:
aws/aws-cli#2753

The solution is to add --no-include-email to your eval.
eval $(aws ecr get-login --region us-east-1 --no-include-email)

@FrenchBen FrenchBen reopened this Nov 20, 2017
@NeilMenne
Copy link
Author

@FrenchBen, that fixes it for me. Thanks for finding that information; I spent a bit of time looking for relevant information to no avail.

Feel free to close.

@mowreyw
Copy link

mowreyw commented Nov 20, 2017

My issue was something different, as I was already using --no-include-email. I found a line in ~/.docker/config.json that identified docker-credential-osxkeychain as the credentials store. Deleting this line allowed me to login using $(aws ecr get-login --region us-east-2 --no-include-email) once again.

@NeilMenne
Copy link
Author

Sounds like we both made it out alive

@FrenchBen
Copy link

Closing as resolved for both parties

@jimmytuc
Copy link

It's work! Thanks

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jun 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants