-
Notifications
You must be signed in to change notification settings - Fork 181
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 command accesses random KeyChain entries and fails #65
Comments
@joelika This sounds really weird, we can't really reproduce your issue. |
Thanks @jeanlaurent! I did perform a After that test, I finally deleted the binary at There's a number of other reports on the original issue here docker/for-mac#1540 for reference. Happy to perform more troubleshooting or provide more details. Thanks for following up! |
Docker For Mac only create symlinks towards the Docker.app bundle in the Could it be possible that you installed a I know we suggested that before the 0.5.0 version was available, as a workaround. |
@jeanlaurent I did not, mainly because I wasn't even aware of
Then if I run:
I get the keychain prompting me to use an item that is not my registry. It's just a random entry, because if I delete this entry, it picks a new one: and if I hit "Deny", I get:
I tried then downloading the v0.5.0 release and overwriting the symlink in Finally, if I delete
This is on macOS 10.12.5 and Docker 17.03.1-ce-mac12 (17661) |
I came across this problem on macOS High Sierra 10.13.1 (17B48) and Docker 17.09.0-ce-mac35 (19611)。 I follow instructions from docker/for-mac#2228 and it works for me. |
|
deleting the /usr/local/bin/docker-credential-osxkeychain worked for me |
It did not work for me. error getting credentials - err: exec: "docker-credential-osxkeychain": executable file not found in $PATH, out: `` |
Same problem as @bestreaction but after a restart of docker, then it works. |
@bestreaction
So feel free to recreate the missing symlink at |
Deleting I ran |
Guys, go to docker preferences and click on Restart, once restarted open new terminal and docker login, it resolved to login succeed. |
Still have problem on |
not work for me;
|
For me also stuck in loop. |
On Ubuntu 18.10, the binary needs to be deleted for login to work is |
i have logout from docker GUI and restart my docker. |
I found super easy solution. |
@narek-king thank you, this solution helps me! I've disabled this option in GUI preferences and tried |
@narek-king yes this also works for me, thanks! After the change it looks like the docker login creds then get saved (encrypted) in ~/.docker/config.json, rather than in the mac keychain. |
if your docker version is 18.09.2, you just removing "credsStore": "osxkeychain" from ~/.docker/config.json instead, docker/for-mac#2295 |
remove the docker-compose will solve the problem, so I'm wondering if the docker-compose caused this problem |
Removing the line My file
I removed the last line (
|
I had similar problem: What didn't work:
Working solution: |
Duplicated from docker/for-mac#1540 Adding here to hopefully get more visibility.
Expected behavior:
Running the command
docker login -u USER -p PASS HOST:8443
should login to the specified repo.
Unexpected behavior:
Running the above command causes docker to ask to access the KeyChain for a randomly chosen entry.
If I deny the request, then the command fails with:
"error getting credentials - err: exit status 1, out: The user name or passphrase you entered is not correct."
If I allow the request, then the command fails with:
"Error saving credentials: error storing credentials - err: exit status 1, out: The specified item already exists in the keychain."
Could be related to issue #47, but I believe that has already been resolved. I also tried downloading docker-credential-osxkeychain v0.5.0 and replacing
/usr/local/bin/docker-credential-osxkeychain
with that release and I had the same issue.The text was updated successfully, but these errors were encountered: