Closed solrevdev closed 1 year ago
@yuowo39 @sunsetted @ryankert01 @millievn can you please share a diagnostics id?
521A3605-80CB-4D5F-9CB1-8C47B4B8ACDF/20240312141552
same
I had the same issue. Unfortunately, the steps suggested by @trevordcampbell didn't work for me.
Software Versions
macOS 12.7.4 Docker Desktop 4.28.0 (139021)
The following workaround helped me:
log stream --predicate 'eventMessage contains "docker" and eventMessage contains "symlink"'
in my case the following was in the log: symlink /usr/local/bin/docker-credential-ecr-login is pointing to /usr/local/Caskroom/docker/4.28.0,139021/Docker.app/Contents/Resources/bin/docker-credential-ecr-login , expected parent dir: /Applications/Docker.app/Contents/Resources/bin
ln -sf /Applications/Docker.app/Contents/Resources/bin/docker-credential-ecr-login /usr/local/bin/docker-credential-ecr-login
Same issue
occur after i uninstall orbstack. reinstall docker some times and symlink (not know which one helps but it works now)
ln -s ~/.docker/run/docker.sock /var/run/docker.sock
Same issue- this happens when I stop my containers and open up MAMP to work on another (old) project. Then II close down MAMP and start my containers again- they all start but I have no connectivity between my php container and the mysql container.
I fix it by restarting the mac and re-applying the configuration.
Mac OS Sonoma Version 14.3.1 Docker Desktop 4.28.0
I had the same issue. Unfortunately, the steps suggested by @trevordcampbell didn't work for me.
Software Versions
macOS 12.7.4 Docker Desktop 4.28.0 (139021)
The following workaround helped me:
- Check the docker logs for symlink issues like:
log stream --predicate 'eventMessage contains "docker" and eventMessage contains "symlink"'
in my case the following was in the log: symlink /usr/local/bin/docker-credential-ecr-login is pointing to /usr/local/Caskroom/docker/4.28.0,139021/Docker.app/Contents/Resources/bin/docker-credential-ecr-login , expected parent dir: /Applications/Docker.app/Contents/Resources/bin
- Fix symlink manually:
ln -sf /Applications/Docker.app/Contents/Resources/bin/docker-credential-ecr-login /usr/local/bin/docker-credential-ecr-login
@qeo-xx Thank you, your method worked for me too 👌 (MacOS: Sonoma 14.3.1 and Docker: 4.28.0)
@tangix @mortonmj @ViggoV @clemsau I may have found a workaround for the issue where the
/var/run/docker.sock
file is not persisting...I've just set up an new mac, and playing around with all the settings. It seems like this is Docker Desktop mishandling the saving of the file on app shutdown.
There's a setting on Mac for persisting windows when quitting an application – by default my new mac had that setting turned
ON
. I was playing around to see if maybe this was the root cause of the issue with Docker Desktop... and it seems like I might have fixed this issue for myself? Here's what I did that ended up working for me.MacOS Workaround Steps: (Sonoma 14.2.1)
- Fresh boot of computer, nothing else open.
- Turn the Mac "Close windows when closing an application" setting to
OFF
. ( -> System Settings -> Desktop & Dock -> "Close windows when quitting an application"
)
- Launch Docker Desktop.
- Receive the "Another application changed your Desktop configurations" prompt, click the
Re-Apply
button and resolve until it goes away.- Close + Terminate Docker Desktop app.
- Reopen + Verify that no configuration prompt is received.
- Turn the Mac "Close windows when closing an application" setting back to
ON
. ( -> System Settings -> Desktop & Dock -> "Close windows when quitting an application"
)
- Power off Mac + restart.
- Open Docker Desktop + Verify that no configuration prompt is received.
It seems like you only have to do this once for the
/var/run/docker.sock
file to finally persist and be maintained from that point forward, as I have not had the configuration error again after doing this.Wondering if this will work for others too?
Thank you, your method worked for me!
I had the same issue. Unfortunately, the steps suggested by @trevordcampbell didn't work for me.
Software Versions
macOS 12.7.4 Docker Desktop 4.28.0 (139021)
The following workaround helped me:
- Check the docker logs for symlink issues like:
log stream --predicate 'eventMessage contains "docker" and eventMessage contains "symlink"'
in my case the following was in the log: symlink /usr/local/bin/docker-credential-ecr-login is pointing to /usr/local/Caskroom/docker/4.28.0,139021/Docker.app/Contents/Resources/bin/docker-credential-ecr-login , expected parent dir: /Applications/Docker.app/Contents/Resources/bin
- Fix symlink manually:
ln -sf /Applications/Docker.app/Contents/Resources/bin/docker-credential-ecr-login /usr/local/bin/docker-credential-ecr-login
I used the first command you provided to check the log message, but I didn't get the message including "docker-credential-ecr-login". So I checked the path in /usr/local/bin/, and I couldn't find the docker-credential-ecr-login file, but I found this file in /Applications/Docker.app/Contents/Resources/bin.
So obviously the problem is that this file is missing or not automatically creating a symbolic link in /usr/local/bin, and I used your second command to create a symbolic link of this file, it finally worked and the warning never shows again.
Thanks for your help
Docker Desktop 4.28.0 (139021) always raise the same issue
Docker Desktop 4.28.0 (139021) always raise the same issue
If your platform is Apple Silicon MacOs, you can try:
ln -sf /Applications/Docker.app/Contents/Resources/bin/xxx /usr/local/bin/xxx
command to create a symbolic link for the missing file, xxx is the file not in /usr/local/bin/Same issue here. For me, docker-credential-ecr-login seemed to be missing, but adding it did not resolve the problem.
I also had docker-credential-ecr-login missing. Adding that link immediately corrected the issue.
Here, the docker-credential-ecr-login
link wasn't missing outright but was pointed off into /opt/homebrew
because I installed Docker Desktop as a Brew Cask. Re-pointing that link into /Applications
as above fixed the symptom.
adding docker-credential-ecr-login in /usr/local/bin seems to be the solution for me
Yes. This worked for me as well.
I wish we could take a poll and see how many of us installed via homebrew -- this is clearly the issue, was for me at least.
I wish we could take a poll and see how many of us installed via homebrew -- this is clearly the issue, was for me at least.
Same for me, too.
Yeah. Was installed from Homebrew.
I did not use homebrew. I installed from the website download.
Thanks @nakroy, noticed missed docker-credential-ecr-login
ln -sf /Applications/Docker.app/Contents/Resources/bin/docker-credential-ecr-login /usr/local/bin/docker-credential-ecr-login
Fixed the problem. Installation was done of a fresh MacOS thought official .dmg package. No homebrew installed on machine.
In my case I already had the docker-credential-ecr-login
symlink in /usr/local/bin/. But I also had a /usr/local/bin/docker-machine
installed by brew (yes I still use it, still works still great). Once I removed that the mysterious and annoying Docker menu bar warning went away.
Thanks @nakroy, noticed missed docker-credential-ecr-login
ln -sf /Applications/Docker.app/Contents/Resources/bin/docker-credential-ecr-login /usr/local/bin/docker-credential-ecr-login
Fixed the problem. Installation was done of a fresh MacOS thought official .dmg package. No homebrew installed on machine.
I resolved by this solution. Thanks
Thanks @nakroy, noticed missed docker-credential-ecr-login
ln -sf /Applications/Docker.app/Contents/Resources/bin/docker-credential-ecr-login /usr/local/bin/docker-credential-ecr-login
Fixed the problem. Installation was done of a fresh MacOS thought official .dmg package. No homebrew installed on machine.
Same here. A clean Ventura 13.6.5 on M2 Mac mini, a fresh copy of Docker 4.28.0 img and I was still getting this problem (#6898) which was resolved by doing the above command. Nice one @nakroy.
I had this same issue and checked the logs as recommended by @qeo-xx and for me the symlink needed to be created in ~/.docker/bin
, not /usr/local/bin
. Everything is working as expected now.
macOS Ventura 13.6.3 on an M2 Pro, Docker installed via .dmg from website.
I have the same problem. I downloaded Docker for my M3 Mac from the Docker website.
Disabling a feature is not a solution. I have the same problem on a clean installation of Docker Desktop on macos 14.3.1 for intel. Please fix
Same problem. MacOS 14.4 with m2 chip and fresh installation of the Docker desktop.
Out of curiousity I again tonight did a completely fresh install of Ventura 13.6.5 on my Mac Mini M2 and first thing I did was download and install a fresh copy of Docker 4.28.0 IMG file. Immediately after install I launch Docker and I get the same problem.
Currently this is the only solution via Terminal:
sudo ln -sf /Applications/Docker.app/Contents/Resources/bin/docker-credential-ecr-login /usr/local/bin/docker-credential-ecr-login
same same on M3
Interesting. The symlink solution as mentioned by a few people in this thread worked for me, but the error still showed on startup for a minute or two before disappearing.
why is this issued closed? the symlink fixes this issue sudo ln -sf /Applications/Docker.app/Contents/Resources/bin/docker-credential-ecr-login /usr/local/bin/docker-credential-ecr-login
I have not checked Automatically check configuration checkbox in settings, but that turned out not to matter, at least to me, and accordingly, I'm only a User for CLI tools configuration, so this symlink worked for me:
sudo ln -sf /Applications/Docker.app/Contents/Resources/bin/docker-credential-ecr-login ~/.docker/bin/docker-credential-ecr-login
MacBook Pro (M1 Pro)
Thank you for the symlink solution. Machine: Sonoma Version 14.3 | MBP M3 Max
The missing docker-credential-ecr-login
issue (and annoying warning) should hopefully be fixed for the Homebrew folks by https://github.com/Homebrew/homebrew-cask/pull/169634
When I re-applied the config settings, docker
stopped working in my terminal. I fixed it by going to Docker > Advanced Settings and checking "System default" under Choose container terminal.
Here, the
docker-credential-ecr-login
link wasn't missing outright but was pointed off into/opt/homebrew
because I installed Docker Desktop as a Brew Cask. Re-pointing that link into/Applications
as above fixed the symptom.
I was missing this link, as well. However, I installed Docker through the DMG, not Homebrew.
why is this issued closed? the symlink fixes this issue
sudo ln -sf /Applications/Docker.app/Contents/Resources/bin/docker-credential-ecr-login /usr/local/bin/docker-credential-ecr-login
Apparently the check was disabled at some point but reappeared in a subsequent version. Seems like there is a new issue opened: https://github.com/docker/for-mac/issues/7208 and the problem will be fixed in the next release.
Commenting here because Google has been directing people with this issue to this thread.
me with the same issue, and the ecr-login was linked to homebrew:
% ls -lha /usr/local/bin/docker-credential-ecr-login lrwxr-xr-x 1 … ... 102B Feb 29 16:22 /usr/local/bin/docker-credential-ecr-login -> /usr/local/Caskroom/docker/4.28.0,139021/Docker.app/Contents/Resources/bin/docker-credential-ecr-login
and after force reinstall in homebrew it became this:
ls -lha /usr/local/bin/docker-credential-ecr-login lrwxr-xr-x 1 … ... 75B Mar 29 11:27 /usr/local/bin/docker-credential-ecr-login -> /Applications/Docker.app/Contents/Resources/bin/docker-credential-ecr-login
but this issue is not solved, that message is still there.
I had this same error. I am on a Macbook Pro Intel chip. I also installed Docker with a download from their website on a fresh MacOS Sonoma install, not using Homebrew.
The issue was resolved by copying the symlink over as described. Now I do not get the osascript error anymore and I do not have to uncheck the "Automatically check configuration" setting in Advanced Settings in Docker Desktop.
Hello
The check can be disabled in Advanced Settings
Thanks
Also confirming that on an M1 Mac with Sonoma 14.4.1 with only xcode command line tools and docker desktop 4.28.0 installed the symlink workaround mentioned above, fixed the issue:
sudo ln -sf /Applications/Docker.app/Contents/Resources/bin/docker-credential-ecr-login /usr/local/bin/docker-credential-ecr-login
I faced same issue on an Intel MacBook Pro with current latest OS.
Steps I accidentally did, to create this issue:
brew install docker
brew install --casks docker
I had the same issue. Unfortunately, the steps suggested by @trevordcampbell didn't work for me.
Software Versions
macOS 12.7.4 Docker Desktop 4.28.0 (139021)
The following workaround helped me:
- Check the docker logs for symlink issues like:
log stream --predicate 'eventMessage contains "docker" and eventMessage contains "symlink"'
in my case the following was in the log: symlink /usr/local/bin/docker-credential-ecr-login is pointing to /usr/local/Caskroom/docker/4.28.0,139021/Docker.app/Contents/Resources/bin/docker-credential-ecr-login , expected parent dir: /Applications/Docker.app/Contents/Resources/bin
- Fix symlink manually:
ln -sf /Applications/Docker.app/Contents/Resources/bin/docker-credential-ecr-login /usr/local/bin/docker-credential-ecr-login
Excellent, Thank you.
It looks like on my system the issue is that when you use the "Re-apply configurations" menu item it doesn't even try to create the missing docker-credential-ecr-login
symlink. I kept getting the error after making the symlink in /usr/local/bin
and discovered from the logs that the symlinks need to be in $HOME/.docker/bin
. Putting the symlink there fixed the error.
So the bug here seems to be that the health check looks for this symlink but the installer and/or the "Re-apply configurations" functions don't put the symlink in place.
This is version 4.28.0
Below is the log of what it tries to do when re-applying configuration. Notice that it doesn't contain any reference to the docker-credential-ecr-login
command.
sh-3.2# log stream --predicate 'eventMessage contains "docker" and eventMessage contains "symlink"'
Filtering the log data using "composedMessage CONTAINS "docker" AND composedMessage CONTAINS "symlink""
Timestamp Thread Type Activity PID TTL
2024-04-02 13:09:50.128432-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/cli-plugins/docker-buildxpoints to/Applications/Docker.app/Contents/Resources/cli-plugins/docker-buildx
2024-04-02 13:09:50.128676-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/cli-plugins/docker-composepoints to/Applications/Docker.app/Contents/Resources/cli-plugins/docker-compose
2024-04-02 13:09:50.128860-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/cli-plugins/docker-debugpoints to/Applications/Docker.app/Contents/Resources/cli-plugins/docker-debug
2024-04-02 13:09:50.129204-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/cli-plugins/docker-devpoints to/Applications/Docker.app/Contents/Resources/cli-plugins/docker-dev
2024-04-02 13:09:50.129477-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/cli-plugins/docker-extensionpoints to/Applications/Docker.app/Contents/Resources/cli-plugins/docker-extension
2024-04-02 13:09:50.129742-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/cli-plugins/docker-feedbackpoints to/Applications/Docker.app/Contents/Resources/cli-plugins/docker-feedback
2024-04-02 13:09:50.129981-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/cli-plugins/docker-initpoints to/Applications/Docker.app/Contents/Resources/cli-plugins/docker-init
2024-04-02 13:09:50.130339-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/cli-plugins/docker-sbompoints to/Applications/Docker.app/Contents/Resources/cli-plugins/docker-sbom
2024-04-02 13:09:50.130587-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/cli-plugins/docker-scoutpoints to/Applications/Docker.app/Contents/Resources/cli-plugins/docker-scout
2024-04-02 13:09:50.131441-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/cli-plugins/docker-buildxpoints to/Applications/Docker.app/Contents/Resources/cli-plugins/docker-buildx
2024-04-02 13:09:50.131636-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/cli-plugins/docker-composepoints to/Applications/Docker.app/Contents/Resources/cli-plugins/docker-compose
2024-04-02 13:09:50.131836-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/cli-plugins/docker-debugpoints to/Applications/Docker.app/Contents/Resources/cli-plugins/docker-debug
2024-04-02 13:09:50.132060-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/cli-plugins/docker-devpoints to/Applications/Docker.app/Contents/Resources/cli-plugins/docker-dev
2024-04-02 13:09:50.133757-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/cli-plugins/docker-extensionpoints to/Applications/Docker.app/Contents/Resources/cli-plugins/docker-extension
2024-04-02 13:09:50.133922-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/cli-plugins/docker-feedbackpoints to/Applications/Docker.app/Contents/Resources/cli-plugins/docker-feedback
2024-04-02 13:09:50.134020-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/cli-plugins/docker-initpoints to/Applications/Docker.app/Contents/Resources/cli-plugins/docker-init
2024-04-02 13:09:50.134125-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/cli-plugins/docker-sbompoints to/Applications/Docker.app/Contents/Resources/cli-plugins/docker-sbom
2024-04-02 13:09:50.134382-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/cli-plugins/docker-scoutpoints to/Applications/Docker.app/Contents/Resources/cli-plugins/docker-scout
2024-04-02 13:09:50.141536-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/bin/dockerpoints to/Applications/Docker.app/Contents/Resources/bin/docker
2024-04-02 13:09:50.141651-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/bin/com.docker.clipoints to/Applications/Docker.app/Contents/Resources/bin/com.docker.cli
2024-04-02 13:09:50.142624-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/bin/docker-composepoints to/Applications/Docker.app/Contents/Resources/bin/docker-compose
2024-04-02 13:09:50.143673-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/bin/hub-toolpoints to/Applications/Docker.app/Contents/Resources/bin/hub-tool
2024-04-02 13:09:50.144625-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/bin/docker-indexpoints to/Applications/Docker.app/Contents/Resources/bin/docker-index
2024-04-02 13:09:50.145612-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/bin/docker-credential-desktoppoints to/Applications/Docker.app/Contents/Resources/bin/docker-credential-desktop
2024-04-02 13:09:50.145763-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/bin/docker-credential-osxkeychainpoints to/Applications/Docker.app/Contents/Resources/bin/docker-credential-osxkeychain
2024-04-02 13:09:50.146289-0500 0xb2a01 Default 0x0 18028 0 com.docker.backend: symlink<HOME>/.docker/bin/kubectl.dockerpoints to/Applications/Docker.app/Contents/Resources/bin/kubectl
I had the same issue
i removed the check sign from the Automatically check configuration option from advance settings now it work fine !
One year later and the error still exists on freshly installed latest Docker on macOS :/
And why the heck is any other app (which?) even able to change configs of such an important tool? Docker is the core of our development process, and it's broken in every aspect, it's nuts how much time we spend just trying to get it running correctly all the time, even on a fresh new system basic things like buiilding a simple container dont work anymore out of the box...
Just want to be clear here... I also disabled the "automatically check configuration" feature to prevent that annoying message, but it is not a solution to the issue. It's more like a workaround.
It would be nice to know what was modified, and if possible, which application modified it, as stated many times in this thread.
Using sudo ln -sf /Applications/Docker.app/Contents/Resources/bin/docker-credential-ecr-login /usr/local/bin/docker-credential-ecr-login
solved the issue.
Mine is M3, Sonoma 14.4.1, docker installed from docker official website.
FYI, uninstalling and reinstalling with the older version 4.27.2 (then updating) works.
https://github.com/docker/for-mac/issues/7208#issuecomment-2033880837
Using
sudo ln -sf /Applications/Docker.app/Contents/Resources/bin/docker-credential-ecr-login /usr/local/bin/docker-credential-ecr-login
solved the issue.Mine is M3, Sonoma 14.4.1, docker installed from docker official website.
Thank you so much @cyhsu. It worked for me flawlessly!
Description
I'm running Docker Desktop on macOS and keep getting the warning "Another application changed your Desktop configurations. This may cause unexpected behavior and errors." I reapply the configurations, but the message keeps coming back. I don't know what other application could be causing this and wonder if it's a known bug.
Reproduce
Not sure how to reproduce. Here are some screenshots which may help:
Expected behavior
No warnings from Docker Desktop about other applications changing my Desktop configurations.
docker version
docker info
Diagnostics ID
Diagnostics ID: 9D492876-F053-4E53-B9F7-58BF882254A8/20230630193135 (uploaded)
Additional Info
I ran the following diagnostic check:
All checks have passed, which generally indicates that my Docker installation is healthy.
Here is my system info:
I should add that I closed down all open apps and could see nothing that would realistically interfere with docker.