-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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-compose can't handle when docker-credential-osxkeychain is gone #6517
Comments
I'm getting a similar error with this version on Mac:
|
This started happening to me as well with edge 2.0.2.1 (311274) and presents the same regardless of if "securely store docker logins in macOS keychain" is selected. Note that when it's deselected then I don't get the first error @ineffyble gets. If I log in with dockerID via the Docker Desktop menu GUI, the errors go away and docker-compose works. If I log back out, it still works without errors, so there's something happening that is "cleared out" by logging out and back in. |
ping @ulyssessouza @chris-crone PTAL |
I get both of these errors in different context. When the option |
This might be caused by an issue in Docker Desktop which is storing if it is using the keychain in I've raised this with them and will keep this issue updated. |
Confirmed that this is the issue. As this is a Desktop issue and not a Compose issue, I will close this. Thank you for reporting it! EDIT: The Desktop team will fix this for the next release so there's nothing for you to do. |
@chris-crone So bug closed without a fix release or workaround? Is anything we can to to bypass this issue? |
@ssbarnea You'll need to edit your CLI config file manually. If you would like to use the macOS keychain then you need to:
If you would not like to use the macOS keychain then you need to:
Let me know if you run into any trouble |
From the Docker Desktop icon, I logged in to the Docker (clicking the |
Thank you! Your post helped me a lot. One addition: I didn't have "credsStore": "osxkeychain", I had "credsStore":"desktop". I had to remove this whole entry and then I could build successfully. |
I had the |
I also removed the second credsStore value and just replaced it with what @Fox32 has in his comment and it was working again |
Was the second instance of that configuration added automatically? (e.g. after upgrading docker?) |
Yeah and weird thing, although I didn't really think about it at the time was that the key was "credSstore" and not what I expected "credsStore". The wrong S in the key was capitalised |
I can't answer that. Maybe there was a Docker for Mac update. But it could also be caused by the Idea Docker plugin. Not sure if it tries to configure it automatically. |
I can confirm that this occurred after an OSX upgrade of Docker to 2.1.0.0 36874. I had 2 credsStore entries and one of them has the capitalized S in the wrong place. After deleting "credsStore":"desktop" and editing so that all I had was "credsStore":"", docker-compose --build worked. |
I had this:
{"auths":{},"credsStore":"", "credsStore":"desktop","stackOrchestrator":"swarm"} I updated to this: {"auths":{},"credsStore":"","stackOrchestrator":"swarm"} Now |
None of the suggestions worked for me. As I pointed out here; the problem occurred to me when upgrading to stable/2.1.0.0. Please let's find a truly reliable solution for this, instead of patchy workarounds. |
Downgrading is how I made it work.
|
First login: Then try again: |
and just delete the files in the folder and everything goes back to normal ~/.docker |
I just deleted the |
Hi @chris-crone I followed the same and 'docker login' is working fine for me! But, while I'm trying to push an image in dockerhub then it's throwing the below error. docker image push himanshu/web1:latest |
Thank you so much Dude! |
I noticed I had this issue inside jetbrains IDE's (shell) when running but not in iterm2 (zsh). After logging out and back in, SH/ZSH inside and outside jetrabrain IDE's now works as well. (In case others come across this) |
Description of the issue
Context information (for bug reports)
Output of
docker-compose version
Output of
docker version
Output of
docker-compose config
(Make sure to add the relevant
-f
and other flags)Steps to reproduce the issue
Open Docker for Mac preferences
docker-compose up
Observed result
traceback
Expected result
containers start running
Stacktrace / full error message
Additional information
OS version / distribution,
docker-compose
install method, etc.The text was updated successfully, but these errors were encountered: