for-mac icon indicating copy to clipboard operation
for-mac copied to clipboard

Docker can't start on MacOS Ventura.

Open ghost opened this issue 4 years ago • 5 comments

Docker version: 4.13.1 MacOS Ventura 13.0.1

Hi. After a system upgrade to Ventura Docker can't start anymore. I tried latest version, tried 4.13.1, tried to completely reinstall Docker multiple times, purged docker data directories - nothing helps. Attempts to "reset to factory defaults" or any other actions from Docker Desktop "troubleshooting" menu don't do anything at all.

~/Library/Containers/com.docker.docker/Data/log/host/com.docker.backend.log is full of messages like this:

[2022-11-22T14:19:55.848127000Z][com.docker.backend][I] still waiting for connection from VM after 14m31.676591378s (state = <nil>, err = querying bootstrap state: Get "http://localhost/state": dial unix vpnkit-bridge.sock: connect: no such file or directory)
[2022-11-22T14:19:55.849165000Z][com.docker.backend][I] still waiting for connection from VM after 10m51.412190436s (state = <nil>, err = querying bootstrap state: Get "http://localhost/state": dial unix vpnkit-bridge.sock: connect: no such file or directory)
[2022-11-22T14:19:55.849234000Z][com.docker.backend][I] still waiting for connection from VM after 10m11.230799928s (state = <nil>, err = querying bootstrap state: Get "http://localhost/state": dial unix vpnkit-bridge.sock: connect: no such file or directory)
[2022-11-22T14:19:55.850383000Z][com.docker.backend][I] still waiting for connection from VM after 30.080414918s (state = <nil>, err = querying bootstrap state: Get "http://localhost/state": dial unix vpnkit-bridge.sock: connect: no such file or directory)
[2022-11-22T14:19:55.853004000Z][com.docker.backend][I] still waiting for connection from VM after 14m31.681388438s (state = <nil>, err = querying bootstrap state: Get "http://localhost/state": dial unix vpnkit-bridge.sock: connect: no such file or directory)
[2022-11-22T14:19:55.854111000Z][com.docker.backend][I] still waiting for connection from VM after 10m21.344992804s (state = <nil>, err = querying bootstrap state: Get "http://localhost/state": dial unix vpnkit-bridge.sock: connect: no such file or directory)
[2022-11-22T14:19:55.854185000Z][com.docker.backend][I] still waiting for connection from VM after 10m11.235698696s (state = <nil>, err = querying bootstrap state: Get "http://localhost/state": dial unix vpnkit-bridge.sock: connect: no such file or directory)
[2022-11-22T14:19:55.854280000Z][com.docker.backend][I] still waiting for connection from VM after 12m41.557758466s (state = <nil>, err = querying bootstrap state: Get "http://localhost/state": dial unix vpnkit-bridge.sock: connect: no such file or directory)
[2022-11-22T14:19:55.856469000Z][com.docker.backend][I] still waiting for connection from VM after 12m41.560067171s (state = <nil>, err = querying bootstrap state: Get "http://localhost/state": dial unix vpnkit-bridge.sock: connect: no such file or directory)
[2022-11-22T14:19:55.918333000Z][com.docker.backend][I] still waiting for connection from VM after 20.040000526s (state = <nil>, err = querying bootstrap state: Get "http://localhost/state": dial unix vpnkit-bridge.sock: connect: no such file or directory)

Could you please help? Thanks.

ghost avatar Nov 22 '22 14:11 ghost

I have a similar issue with this docker version and macOs but I cannot launch the dashboard nor containers I uploaded a diagnostics report if that helps, A1EAEB13-C5B0-4C62-AC1D-21AB7E5C08E8/20221123142722

jmrpineda avatar Nov 23 '22 14:11 jmrpineda

I had a similar issue too. But I fixed it by reinstalling Docker Desktop. I cannot uninstall Docker Desktop via "Troubleshoot" menu so I removed files related by Docker Desktop manually. It's using the following commands.

# c.f. https://stackoverflow.com/questions/44346109/how-to-easily-install-and-uninstall-docker-on-macos
sudo rm -Rf /Applications/Docker.app
sudo rm -f /usr/local/bin/docker
sudo rm -f /usr/local/bin/com.docker.cli
sudo rm -f /usr/local/bin/docker-compose
sudo rm -f /usr/local/bin/docker-compose-v1
sudo rm -f /usr/local/bin/docker-credential-desktop
sudo rm -f /usr/local/bin/docker-credential-ecr-login
sudo rm -f /usr/local/bin/docker-credential-osxkeychain
sudo rm -f /usr/local/bin/hub-tool
sudo rm -f /usr/local/bin/kubectl.docker
sudo rm -f /usr/local/bin/vpnkit
sudo rm -Rf ~/.docker
sudo rm -Rf ~/Library/Containers/com.docker.docker
sudo rm -Rf ~/Library/Application\ Support/Docker\ Desktop
sudo rm -Rf ~/Library/Group\ Containers/group.com.docker
sudo rm -f /Library/PrivilegedHelperTools/com.docker.vmnetd
sudo rm -f /Library/LaunchDaemons/com.docker.vmnetd.plist
sudo rm -Rf /usr/local/lib/docker
sudo rm -f ~/Library/Preferences/com.docker.docker.plist

If Docker Desktop fails to launch after install, maybe blocked by macOS. Try to check "Privacy & Security" settings.

I hope this helps.

munisystem avatar Nov 25 '22 07:11 munisystem

That works for me, now running soft & smooth!!!! thanks mate for the guide!!!

jmrpineda avatar Nov 25 '22 07:11 jmrpineda

Works for me too! @munisystem thanks a lot!

ghost avatar Nov 25 '22 09:11 ghost

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

docker-robott avatar Mar 05 '23 03:03 docker-robott