-
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
Credentials store docker-credential-osxkeychain exited with "User interaction is not allowed." #82
Comments
If I click on the docker icon in the menu bar -> preferences -> and I untick "Securely store docker logins in macOS keychain" this problem goes away. |
I'm experiencing the same issue. Unticking as suggested by @xanview worked for me too, but it would good to know how to fix it without that workaround. |
I just experienced the same issue |
If it can help someone, I've got the same error when executed |
@antipin to me it happens after an OSX crash and somehow the recovered iterm2 sessions are unusable. |
Recently I experienced this issue. I went to Keychain Access and locked/unlocked my local keychain. Then I restarted Docker for Mac. |
Running It started to do this to me every time I log in via SSH or use tmux, since one of the last Docker updates (I'm on 17.12.0-ce-mac49 now). |
We don't provide a way currently to execute an auto headless unlock of the keychain. |
Two years later and this is still a serious issue, killing any automation attempts. I guess the only workaround to this is to go back to non unsing the keychain and getting used to all the runtime warnigns related to unsecured creadentials inside |
Ran into this today, and oddly just had to restart my mac :\ |
same problem.please anyone |
Trying the solution offered by @ghost i.e. clicking on the docker icon in the menu bar -> preferences -> and unticking "Securely store docker logins in macOS keychain" yielded an initialization error:
|
For Windows and Docker Hub: |
Solução para Windows (docker desktop) Faça o seguinte: docker -> configurações -> resoucers -> filesharing -> [disco do projeto] && login com uma conta no docker && restart docker. |
I had to logoff from the Docker Desktop for mac to get rid of this obstacle |
This is still an issue. ssh into my macbook pro running docker desktop for mac, 2.5.0.1 (49550). If I try (base) ➜ ~ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: <my-username>
Password:
Error saving credentials: error storing credentials - err: exit status 1, out: `User interaction is not allowed.` In iTerm2 running directly on macbook pro, everything is fine. Definitely related to remote SSH sessions on mac. system.logWhen I Dec 12 23:30:15 myhost com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.docker-credenti.13519): Failed to bootstrap path: path = /usr/local/bin/docker-credential-osxkeychain, error = 2: No such file or directory In both the success and failure scenarios, this error is logged upon entering the |
Shut down docker. "credsStore" : "desktop" from ~/.docker/config.json |
This error means that your keychain is locked and credentials can't be accessed by the current session. Eg. it may stop working when you log in via ssh like #82 (comment) describes. To unlock the keychain run:
We should improve the error and print instructions for unlocking the keychain in the message. |
@ajslater, thank you for posting this simple solution. I don't know why anyone would put up with unlocking the keychain (requires typing password) on every terminal session (or vs code session). Also it may be a good idea for Docker to enhance the error message referencing that this is an option. |
It works for me. |
When I run docker-compose locally, it works just fine, but if I ssh into the machine I get the following:
Any ideas?
The text was updated successfully, but these errors were encountered: