Docker Desktop install error on Mac book Pro – OS Monterey – Error: Error invoking remote method 'desktop-go-backend'

huangapple go评论132阅读模式
英文:

Docker Desktop install error on Mac book Pro - OS Monterey - Error: Error invoking remote method 'desktop-go-backend'

问题

我尝试使用Docker Desktop for Mac(Intel芯片)安装Docker Desktop,但出现以下错误:

Error invoking remote method 'desktop-go-backend': Error: {"message":"installing vmnetd: retrieving vmnetd version from /Library/LaunchDaemons/com.docker.vmnetd.plist: reading plist /Library/LaunchDaemons/com.docker.vmnetd.plist: open /Library/LaunchDaemons/com.docker.vmnetd.plist: no such file or directory\ngithub.com/docker/pinata/mac/tools/install/privileged.getValueFromPlist\n\tgithub.com/docker/pinata/mac/tools/install/privileged/vmnetd.go:175\n...

我尝试多次卸载和重新安装Mac上的Docker Desktop,但未能解决问题。然后我找到了这个答案 - https://stackoverflow.com/questions/76201452/unable-to-finish-docker-install-on-mac-book-error-invoking-remote-method-deskto

我尝试运行以下命令 - brew install --cask docker

它显示以下错误:已经存在一个位于/Applications/Docker.app的应用程序。

我尝试运行以下命令 -

/Applications/Docker.app/Contents/MacOS/uninstall

但出现zsh错误:没有这个文件或目录:/Applications/Docker.app/Contents/MacOS/uninstall

我运行了以下命令来检查Docker安装位置

ls -ltrh /usr/local/bin/docker
lrwxr-xr-x  1 root  admin    54B Jun  1 14:01 /usr/local/bin/docker -> /Applications/Docker.app/Contents/Resources/bin/docker

然后我运行了以下命令

rm -rf /Applications/Docker.app

以删除Docker应用程序,然后使用以下命令检查docker

ls -ltrh /usr/local/bin/docker
lrwxr-xr-x  1 root  admin    54B Jun  1 14:01 /usr/local/bin/docker -> /Applications/Docker.app/Contents/Resources/bin/docker

发现了所有的docker二进制文件,接着运行以下命令以删除所有docker二进制文件

然后运行以下命令 - 再次运行brew install --cask docker

这次我得到以下错误:

Error: It seems there is already a Binary at '/usr/local/bin/hub-tool'.

再次手动删除了二进制文件

ls -ltrh /usr/local/bin/hub-tool
lrwxr-xr-x  1 root  admin    56B Jun  1 14:01 /usr/local/bin/hub-tool -> /Applications/Docker.app/Contents/Resources/bin/hub-tool
rm -rf /usr/local/bin/hub-tool

尝试运行命令 brew install --cask docker 再次

这次得到以下错误:

Error: It seems there is already a Binary at '/usr/local/bin/kubectl.docker'.

再次手动删除了二进制文件

运行命令 brew install --cask docker 再次

这次得到以下错误:

Error: It seems there is already a Binary at '/usr/local/bin/vpnkit'.

再次手动删除了二进制文件

运行命令 brew install --cask docker 再次

这次得到以下错误:

Error: It seems there is already a Binary at '/usr/local/bin/com.docker.cli'.

再次手动删除了二进制文件

英文:

I tried installing Docker Desktop using Docker Desktop for Mac (Intel Chip) and it failed with the following error:

Error invoking remote method 'desktop-go-backend': Error: {"message":"installing vmnetd: retrieving vmnetd version from /Library/LaunchDaemons/com.docker.vmnetd.plist: reading plist /Library/LaunchDaemons/com.docker.vmnetd.plist: open /Library/LaunchDaemons/com.docker.vmnetd.plist: no such file or directory\\ngithub.com/docker/pinata/mac/tools/install/privileged.getValueFromPlist\\n\\tgithub.com/docker/pinata/mac/tools/install/privileged/vmnetd.go:175\\ngithub.com/docker/pinata/mac/tools/install/privileged.setupVmnetd\\n\\tgithub.com/docker/pinata/mac/tools/install/privileged/vmnetd.go:85\\ngithub.com/docker/pinata/mac/tools/install/privileged.ApplyCustomConfiguration\\n\\tgithub.com/docker/pinata/mac/tools/install/privileged/privileged.go:137\\ngithub.com/docker/pinata/mac/tools/install/privileged.ConfigCmd.func1\\n\\tgithub.com/docker/pinata/mac/tools/install/privileged/privileged.go:59\\ngithub.com/spf13/cobra.(\*Command).execute\\n\\tgithub.com/spf13/cobra@v1.7.0/command.go:940\\ngithub.com/spf13/cobra.(\*Command).ExecuteC\\n\\tgithub.com/spf13/cobra@v1.7.0/command.go:1068\\ngithub.com/spf13/cobra.(\*Command).Execute\\n\\tgithub.com/spf13/cobra@v1.7.0/command.go:992\\nmain.main\\n\\tgithub.com/docker/pinata/mac/tools/install/main.go:185\\nruntime.main\\n\\truntime/proc.go:250\\nruntime.goexit\\n\\truntime/asm_amd64.s:1598\\ngithub.com/docker/pinata/mac/tools/install/privileged.setupVmnetd\\n\\tgithub.com/docker/pinata/mac/tools/install/privileged/vmnetd.go:87\\ngithub.com/docker/pinata/mac/tools/install/privileged.ApplyCustomConfiguration\\n\\tgithub.com/docker/pinata/mac/tools/install/privileged/privileged.go:137\\ngithub.com/docker/pinata/mac/tools/install/privileged.ConfigCmd.func1\\n\\tgithub.com/docker/pinata/mac/tools/install/privileged/privileged.go:59\\ngithub.com/spf13/cobra.(\*Command).execute\\n\\tgithub.com/spf13/cobra@v1.7.0/command.go:940\\ngithub.com/spf13/cobra.(\*Command).ExecuteC\\n\\tgithub.com/spf13/cobra@v1.7.0/command.go:1068\\ngithub.com/spf13/cobra.(\*Command).Execute\\n\\tgithub.com/spf13/cobra@v1.7.0/command.go:992\\nmain.main\\n\\tgithub.com/docker/pinata/mac/tools/install/main.go:185\\nruntime.main\\n\\truntime/proc.go:250\\nruntime.goexit\\n\\truntime/asm_amd64.s:1598"}

I tried uninstalling and re-installing Docker desktop for mac few times. It did not solve the problem. Then I found this answer - https://stackoverflow.com/questions/76201452/unable-to-finish-docker-install-on-mac-book-error-invoking-remote-method-deskto

I tried the command - brew install --cask docker

It said the following error: there is already an App at '/Applications/Docker.app'.

I tried running command -

/Applications/Docker.app/Contents/MacOS/uninstall

and got zsh: no such file or directory: /Applications/Docker.app/Contents/MacOS/uninstall

I ran the commmand to check where is Docker installed

ls -ltrh /usr/local/bin/docker
lrwxr-xr-x  1 root  admin    54B Jun  1 14:01 /usr/local/bin/docker -\> /Applications/Docker.app/Contents/Resources/bin/docker

I ran the command

rm -rf /Applications/Docker.app 

to remove the Docker app, then I checked docker again with command

ls -ltrh /usr/local/bin/docker

and got

ls -ltrh /usr/local/bin/docker
lrwxr-xr-x  1 root  admin    54B Jun  1 14:01 /usr/local/bin/docker -\> /Applications/Docker.app/Contents/Resources/bin/docker

Found all docker binaries (.venv) ➜  respell git:(master) ls -ltrh /usr/local/bin/docker\*

Ran the command to remove all docker binaries

Then ran the command - brew install --cask docker - again

This time I got the following error:

Error: It seems there is already a Binary at '/usr/local/bin/hub-tool'.

Again manually deleted the binary file

ls -ltrh /usr/local/bin/hub-tool
lrwxr-xr-x  1 root  admin    56B Jun  1 14:01 /usr/local/bin/hub-tool -\> /Applications/Docker.app/Contents/Resources/bin/hub-tool
(.venv) ➜  respell git:(master) rm -rf /usr/local/bin/hub-tool

Tried running the command brew install --cask docker again

This time got the error:

Error: It seems there is already a Binary at '/usr/local/bin/kubectl.docker'.

Again manually deleted the binary file

Ran the command brew install --cask docker again

This time got the error:

Error: It seems there is already a Binary at '/usr/local/bin/vpnkit'.

Again manually deleted the binary file

Ran the command brew install --cask docker again

This time got the error:

Error: It seems there is already a Binary at '/usr/local/bin/com.docker.cli'.

Again manually deleted the binary file

答案1

得分: 3

我遇到了类似的错误:

错误:似乎已经存在一个二进制文件在 '/usr/local/bin/docker-index'。

而与 Docker 相关的唯一文件是 docker-index,

$ ls -la /usr/local/bin/docker*
lrwxr-xr-x@ 1 root  wheel  60 Dec  5 18:51 /usr/local/bin/docker-index -> /Applications/Docker.app/Contents/Resources/bin/docker-index

所以我将其重命名为:

sudo mv /usr/local/bin/docker-index /usr/local/bin/docker-index-old

然后重新安装:
brew reinstall --cask docker

安装成功:

==> 安装 Cask docker
==> 移动应用程序 'Docker.app''/Applications/Docker.app'
==> 链接二进制文件 'docker''/usr/local/bin/docker'
==> 链接二进制文件 'docker-compose''/usr/local/bin/docker-compose'
==> 链接二进制文件 'docker-compose''/usr/local/bin/docker-compose-v1'
==> 链接二进制文件 'docker-credential-desktop''/usr/local/bin/docker-credential-desktop'
==> 链接二进制文件 'docker-credential-ecr-login''/usr/local/bin/docker-credential-ecr-login'
==> 链接二进制文件 'docker-credential-osxkeychain''/usr/local/bin/docker-credential-osxkeychain'
==> 链接二进制文件 'docker-index''/usr/local/bin/docker-index'
==> 链接二进制文件 'hub-tool''/usr/local/bin/hub-tool'
==> 链接二进制文件 'kubectl''/usr/local/bin/kubectl.docker'
==> 链接二进制文件 'docker.bash-completion''/opt/homebrew/etc/bash_completion.d/docker'
==> 链接二进制文件 'docker-compose.bash-completion''/opt/homebrew/etc/bash_completion.d/docker-compose'
==> 链接二进制文件 'docker.zsh-completion''/opt/homebrew/share/zsh/site-functions/_docker'
==> 链接二进制文件 'docker-compose.zsh-completion''/opt/homebrew/share/zsh/site-functions/_docker_compose'
==> 链接二进制文件 'docker.fish-completion''/opt/homebrew/share/fish/vendor_completions.d/docker.fish'
==> 链接二进制文件 'docker-compose.fish-completion''/opt/homebrew/share/fish/vendor_completions.d/docker-compose.fish'
==> 链接二进制文件 'com.docker.vpnkit''/usr/local/bin/vpnkit'
==> 链接二进制文件 'com.docker.cli''/usr/local/bin/com.docker.cli'
🐳 Docker 安装成功!
英文:

I had similar error:

Error: It seems there is already a Binary at '/usr/local/bin/docker-index'.

And the only file related to docker was docker-index,

$ ls -la /usr/local/bin/docker*
lrwxr-xr-x@ 1 root  wheel  60 Dec  5 18:51 /usr/local/bin/docker-index -> /Applications/Docker.app/Contents/Resources/bin/docker-index

So I renamed it:

sudo mv /usr/local/bin/docker-index /usr/local/bin/docker-index-old

Then reinstall:
brew reinstall --cask docker

Installed successfully:

==> Installing Cask docker
==> Moving App 'Docker.app' to '/Applications/Docker.app'
==> Linking Binary 'docker' to '/usr/local/bin/docker'
==> Linking Binary 'docker-compose' to '/usr/local/bin/docker-compose'
==> Linking Binary 'docker-compose' to '/usr/local/bin/docker-compose-v1'
==> Linking Binary 'docker-credential-desktop' to '/usr/local/bin/docker-credential-desktop'
==> Linking Binary 'docker-credential-ecr-login' to '/usr/local/bin/docker-credential-ecr-login'
==> Linking Binary 'docker-credential-osxkeychain' to '/usr/local/bin/docker-credential-osxkeychain'
==> Linking Binary 'docker-index' to '/usr/local/bin/docker-index'
==> Linking Binary 'hub-tool' to '/usr/local/bin/hub-tool'
==> Linking Binary 'kubectl' to '/usr/local/bin/kubectl.docker'
==> Linking Binary 'docker.bash-completion' to '/opt/homebrew/etc/bash_completion.d/docker'
==> Linking Binary 'docker-compose.bash-completion' to '/opt/homebrew/etc/bash_completion.d/docker-compose'
==> Linking Binary 'docker.zsh-completion' to '/opt/homebrew/share/zsh/site-functions/_docker'
==> Linking Binary 'docker-compose.zsh-completion' to '/opt/homebrew/share/zsh/site-functions/_docker_compose'
==> Linking Binary 'docker.fish-completion' to '/opt/homebrew/share/fish/vendor_completions.d/docker.fish'
==> Linking Binary 'docker-compose.fish-completion' to '/opt/homebrew/share/fish/vendor_completions.d/docker-compose.fish'
==> Linking Binary 'com.docker.vpnkit' to '/usr/local/bin/vpnkit'
==> Linking Binary 'com.docker.cli' to '/usr/local/bin/com.docker.cli'
🍺  docker was successfully installed!

答案2

得分: 0

最后,手动删除上面提到的所有文件后,此错误已得到解决,然后再次运行以下命令:

> brew install --cask docker
> ==> 正在下载 https://raw.githubusercontent.com/Homebrew/homebrew-cask/02e856177979b59c39bcad4617ecf9660efc6052/Casks/docker.rb
> 已下载:/Users/imaxxs/Library/Caches/Homebrew/downloads/0d69aa12bea0f03a9be6de7e0c8>965972a6e4c2fd83f74f7721cd1d8f755f50c--docker.rb
> ==> 正在下载 https://desktop.docker.com/mac/main/amd64/109717/Docker.dmg
> 已下载:/Users/imaxxs/Library/Caches/Homebrew/downloads/8b8a9b014fdc9feea8b25312eb4>22310d409838134155da094b83563a337274c--Docker.dmg
> ==> 安装 Cask docker
> ==> 将应用 'Docker.app' 移动到 '/Applications/Docker.app'
> ==> 链接二进制文件 'docker''/usr/local/bin/docker'
> ==> 链接二进制文件 'docker-compose''/usr/local/bin/docker-compose'
> ==> 链接二进制文件 'docker-compose''/usr/local/bin/docker-compose-v1'
> ==> 链接二进制文件 'docker-credential-desktop''/usr/local/bin/docker->credential-desktop'
> ==> 链接二进制文件 'docker-credential-ecr-login''/usr/local/bin/docker->credential-ecr-login'
> ==> 链接二进制文件 'docker-credential-osxkeychain''>/usr/local/bin/docker-credential-osxkeychain'
> ==> 链接二进制文件 'docker-index''/usr/local/bin/docker-index'
> ==> 链接二进制文件 'hub-tool''/usr/local/bin/hub-tool'
> ==> 链接二进制文件 'kubectl''/usr/local/bin/kubectl.docker'
> ==> 链接二进制文件 'docker.bash-completion''>/usr/local/etc/bash_completion.d/docker'
> ==> 链接二进制文件 'docker-compose.bash-completion''>/usr/local/etc/bash_completion.d/docker-compose'
> ==> 链接二进制文件 'docker.zsh-completion''/usr/local/share/zsh/site->functions/_docker'
> ==> 链接二进制文件 'docker-compose.zsh-completion''>/usr/local/share/zsh/site-functions/_docker_compose'
> ==> 链接二进制文件 'docker.fish-completion''/usr/local/share/fish/vendor_completions.d/docker.fish'
> ==> 链接二进制文件 'docker-compose.fish-completion''>/usr/local/share/fish/vendor_completions.d/docker-compose.fish'
> ==> 链接二进制文件 'com.docker.vpnkit''/usr/local/bin/vpnkit'
> ==> 链接二进制文件 'com.docker.cli''/usr/local/bin/com.docker.cli'
> 🚢  Docker 安装成功!

注意:此处提供了命令的翻译,但实际输出中可能包含一些特殊符号和图标,无法在纯文本中准确呈现。

英文:

Finally, this error got resolved after manually deleting all the files mentioned above and then running the command again:

>brew install --cask docker
>==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew->cask/02e856177979b59c39bcad4617ecf9660efc6052/Casks/docker.rb
>Already downloaded: >/Users/imaxxs/Library/Caches/Homebrew/downloads/0d69aa12bea0f03a9be6de7e0c8>965972a6e4c2fd83f74f7721cd1d8f755f50c--docker.rb
>==> Downloading https://desktop.docker.com/mac/main/amd64/109717/Docker.dmg
>Already downloaded: >/Users/imaxxs/Library/Caches/Homebrew/downloads/8b8a9b014fdc9feea8b25312eb4>22310d409838134155da094b83563a337274c--Docker.dmg
>==> Installing Cask docker
>==> Moving App 'Docker.app' to '/Applications/Docker.app'
>==> Linking Binary 'docker' to '/usr/local/bin/docker'
>==> Linking Binary 'docker-compose' to '/usr/local/bin/docker-compose'
>==> Linking Binary 'docker-compose' to '/usr/local/bin/docker-compose-v1'
>==> Linking Binary 'docker-credential-desktop' to '/usr/local/bin/docker->credential-desktop'
>==> Linking Binary 'docker-credential-ecr-login' to '/usr/local/bin/docker->credential-ecr-login'
>==> Linking Binary 'docker-credential-osxkeychain' to >'/usr/local/bin/docker-credential-osxkeychain'
>==> Linking Binary 'docker-index' to '/usr/local/bin/docker-index'
>==> Linking Binary 'hub-tool' to '/usr/local/bin/hub-tool'
>==> Linking Binary 'kubectl' to '/usr/local/bin/kubectl.docker'
>==> Linking Binary 'docker.bash-completion' to >'/usr/local/etc/bash_completion.d/docker'
>==> Linking Binary 'docker-compose.bash-completion' to >'/usr/local/etc/bash_completion.d/docker-compose'
>==> Linking Binary 'docker.zsh-completion' to '/usr/local/share/zsh/site->functions/_docker'
>==> Linking Binary 'docker-compose.zsh-completion' to >'/usr/local/share/zsh/site-functions/_docker_compose'
>==> Linking Binary 'docker.fish-completion' to >'/usr/local/share/fish/vendor_completions.d/docker.fish'
>==> Linking Binary 'docker-compose.fish-completion' to >'/usr/local/share/fish/vendor_completions.d/docker-compose.fish'
>==> Linking Binary 'com.docker.vpnkit' to '/usr/local/bin/vpnkit'
>==> Linking Binary 'com.docker.cli' to '/usr/local/bin/com.docker.cli'
>🍺  docker was successfully installed!`enter code here`

答案3

得分: 0

在我的情况下,我开始安装docker,但由于连接问题,安装失败了,所以我的brew安装非常混乱,还没有完成。当我尝试再次使用相同的命令brew install --cask docker安装docker时,brew抱怨一些文件/文件夹已经存在。
我会说删除这些文件/文件夹是相当“安全”的,brew会告诉您是什么导致了问题,仔细检查创建日期以确保,然后在尝试使用相同的命令安装时删除与docker相关的任何内容。

(在我看来,Mac卸载程序真的很糟糕,在更极端的情况下,您可以尝试安装一些清理软件,[例如“MacCleaner Pro”,“Cleaner One”]来删除垃圾文件,然后尝试重新安装。)

英文:

In my case, I started to install docker and the installation failed due to connection issues so my brew was really messy with an unfinished installation. When I tried to install docker again with the same command brew install --cask docker, brew complained some files/folders already existed.
I would say it's pretty "safe" to delete these files/folders, brew will tell you what's causing the problem, check the creation date just to be sure, and delete anything related to docker while trying to install with the same command.

(In my opinion Mac uninstaller it's terrible, in a more extreme case, you can try installing some cleaner software, [e.g. "MacCleaner Pro", "Cleaner One"] to remove junk files and try to reinstall again)

huangapple
  • 本文由 发表于 2023年6月2日 12:49:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/76387204.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定