skip to Main Content

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 directoryngithub.com/docker/pinata/mac/tools/install/privileged.getValueFromPlistntgithub.com/docker/pinata/mac/tools/install/privileged/vmnetd.go:175ngithub.com/docker/pinata/mac/tools/install/privileged.setupVmnetdntgithub.com/docker/pinata/mac/tools/install/privileged/vmnetd.go:85ngithub.com/docker/pinata/mac/tools/install/privileged.ApplyCustomConfigurationntgithub.com/docker/pinata/mac/tools/install/privileged/privileged.go:137ngithub.com/docker/pinata/mac/tools/install/privileged.ConfigCmd.func1ntgithub.com/docker/pinata/mac/tools/install/privileged/privileged.go:59ngithub.com/spf13/cobra.(*Command).executentgithub.com/spf13/[email protected]/command.go:940ngithub.com/spf13/cobra.(*Command).ExecuteCntgithub.com/spf13/[email protected]/command.go:1068ngithub.com/spf13/cobra.(*Command).Executentgithub.com/spf13/[email protected]/command.go:992nmain.mainntgithub.com/docker/pinata/mac/tools/install/main.go:185nruntime.mainntruntime/proc.go:250nruntime.goexitntruntime/asm_amd64.s:1598ngithub.com/docker/pinata/mac/tools/install/privileged.setupVmnetdntgithub.com/docker/pinata/mac/tools/install/privileged/vmnetd.go:87ngithub.com/docker/pinata/mac/tools/install/privileged.ApplyCustomConfigurationntgithub.com/docker/pinata/mac/tools/install/privileged/privileged.go:137ngithub.com/docker/pinata/mac/tools/install/privileged.ConfigCmd.func1ntgithub.com/docker/pinata/mac/tools/install/privileged/privileged.go:59ngithub.com/spf13/cobra.(*Command).executentgithub.com/spf13/[email protected]/command.go:940ngithub.com/spf13/cobra.(*Command).ExecuteCntgithub.com/spf13/[email protected]/command.go:1068ngithub.com/spf13/cobra.(*Command).Executentgithub.com/spf13/[email protected]/command.go:992nmain.mainntgithub.com/docker/pinata/mac/tools/install/main.go:185nruntime.mainntruntime/proc.go:250nruntime.goexitntruntime/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 – Unable to finish Docker Install on Mac book Error invoking remote method 'desktop-go-backend'

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 got the 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

2

Answers


  1. Chosen as BEST ANSWER
    >Finally, this error got resolved after deleting all the files mentioned >above manually 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`
    

  2. 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!
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search