-
Notifications
You must be signed in to change notification settings - Fork 117
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/config.json
reverts to default settings after a Docker Desktop restart
#6295
Comments
My teammates are also affected by this. Seems similar to the Windows bug docker/for-win#9843 |
I'm having the same issue and it's very annoying to keep updating |
Noted in every version on macOS till the current latest (4.7.1). If it's still deemed necessary to reset the file upon updating Docker Desktop, it's be nice to have a setting to prevent it from doing so. |
Hi everyone, thank you for reporting this issue. We were able to replicate it and already created a ticket to look into this. |
@AndreSilva1993 Thanks for looking into it! Did you get a chance to solve the issue? For the time being, I am using the following alias after starting Docker for Mac: alias docker-configure-ecr="echo '{\"credsStore\": \"ecr-login\"}' > ~/.docker/config.json" Are there other known workarounds we can use until the problem is fixed? |
Is there any updates on this ticket? This has been annoying many users for a while. Making the config immutable seems to be the only workaround so far. |
@pwalch you can create an "Automator app" per these instructions such that you don't have to execute your alias manually upon restarting. I have done this and tested it and it appears to work properly. |
@AndreSilva1993 can you provide details please? This is a constant irritant due to having to restart Desktop because hyperkit has gone off reservation or even for OS patches. Thanks. |
Also having this issue, latest Docker Desktop for Mac v4.14.0, macOS 12.3.1 This is interfering with our ability to also login to AWS ECR and other repositories, because as soon as we login to those repositories, docker desktop throws an error and seems to get logged out of Docker business or whatever the new required/enforced subscription sign in, which seems to have started recently in the past few weeks. Once signed back into Docker Desktop, it's functional until you attempt to do docker login to ECR, at which point you get signed out of Docker Desktop and this process repeats. I have an open case into Docker support, and pointed them to this issue. The workaround for us is to change the config.json |
Hello! |
Thanks all for your patience on this issue. Docker Desktop adds a "pass-through" credential helper to
to whichever credential helper you'd like to use? Let me know if this works for you (or not). |
Hello @djs55, I just tested it for https://github.com/awslabs/amazon-ecr-credential-helper. And it works, even after restarting ! 🎉
Just make sure you set the full executable name: I've been had by setting only "ecr-login" instead of "docker-credential-ecr-login". I guess it's the same for the other credential helpers. My setup for examplePreviously
Now
|
Yes, it works for me too! Thank you so much! |
This Fix worked for me! Thank you @djs55 |
I don't think the workaround suggestion would work for me. My issue is not
If there a |
It's my config file, please don't change it! It seems ridiculous to have to add a
I can live with the warning:
|
The issue originally reported here - that the |
Expected behavior
~/.docker/config.json
remains unchanged after restarting Docker Desktop.Actual behavior
~/.docker/config.json
reverts to its default content.Information
I use docker-credential-helper-ecr, and noticed that as of recently (I'd say version 4.7.0) whenever I restart Docker Desktop, the contents of
~/.docker/config.json
are reset to its default.For the Amazon ECR Docker Credential Helper I set
credsStore
in~/.docker/config.json
toecr-login
, but after a Docker Desktop restart it will revert back todesktop
.This is occurring for me and several of my team members, on Intel and Apple chips, across a variety of macOS 12 versions.
Output of
/Applications/Docker.app/Contents/MacOS/com.docker.diagnose check
I believe the network check error to be unrelated/a red herring.
Steps to reproduce the behavior
~/.docker/config.json
to set thecredStore
toecr-login
.~/.docker/config.json
has been reinstated.The text was updated successfully, but these errors were encountered: