-
Notifications
You must be signed in to change notification settings - Fork 120
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
Error response from daemon: is vmnetd running? #6677
Comments
We fixed this temporary manually for now via: we need to do this after every restart of docker desktop check if the vmnetd launch service exists in sudo cp /Applications/Docker.app/Contents/Library/LaunchServices/com.docker.vmnetd /Library/PrivilegedHelperTools/com.docker.vmnetd check if the launch deamon exists in sudo tee -a /Library/LaunchDaemons/com.docker.vmnetd.plist > /dev/null <<EOT
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.docker.vmnetd</string>
<key>Program</key>
<string>/Library/PrivilegedHelperTools/com.docker.vmnetd</string>
<key>ProgramArguments</key>
<array>
<string>/Library/PrivilegedHelperTools/com.docker.vmnetd</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>Sockets</key>
<dict>
<key>Listener</key>
<dict>
<key>SockPathMode</key>
<integer>438</integer>
<key>SockPathName</key>
<string>/var/run/com.docker.vmnetd.sock</string>
</dict>
</dict>
<key>Version</key>
<string>64</string>
</dict>
</plist>
EOT Last step is stop the vmnetd service if it is already running, unload, load the service and then start the vmnetd service again sudo launchctl stop com.docker.vmnetd
sudo launchctl unload /Library/LaunchDaemons/com.docker.vmnetd.plist
sudo launchctl load /Library/LaunchDaemons/com.docker.vmnetd.plist
sudo launchctl start com.docker.vmnetd this fixed our issue. but it will be better if docker is prompting for installing the deamon to use privileged ports such as 53 |
Hi @rbouma.
Do you mind trying them and check if the install is returning an error and if you can get more details on it please? Thanks! |
found out that the Info.plist exists
We are all using Case Sensitive File System so After rename the file with after correcting the name docker is not starting anymore so needed it to rename it back to It is working now without any problem even when i restart docker desktop or the whole system the error is not seen anymore. So i think this is an issue due to our file system that is case sensitive and the names with the Update: 01-16-2023 Again confirmed by a colleague running after running: /Applications/Docker.app/Contents/MacOS/install remove-vmnetd
sudo mv /Applications/Docker.app/Contents/Info.plist /Applications/Docker.app/Contents/Info.Plist
/Applications/Docker.app/Contents/MacOS/install vmnetd
sudo mv /Applications/Docker.app/Contents/Info.Plist /Applications/Docker.app/Contents/Info.plist it is working again. So naming of the |
Sorry for this bug @rbouma. We'll get a fix in for the next release. Can you maybe duplicate the file and have it with both |
@aiordache Yes i have both files in the directory and so far it is running good. Will wait for the next release thanks! |
We have just released Docker Desktop 4.16.2 with a fix! |
@mat007 great! Thanks |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. /lifecycle locked |
i know this is closed but in case this helps anyone...in my case (MacOS 13.4, Docker Desktop Version 4.20.1), the steps mentioned above by rbouma, updated on 1-16 was close but didn't work. these steps worked for me:
|
same as @monaw was happening for me on MacOS 13.4 and Docker Desktop 4.20.1 |
thanks @monaw! that resolved it for me on MacOS 13.4 and docker desktop 4.20.1 |
Seems several projects have begun recommending Colima when using Docker on Mac. It seems to have solved this issue; trying it out further. (Colima describes itself as "container runtimes on macOS (and Linux) with minimal setup.") |
I can confirm that the solution by @monaw worked for me on MacOS 13.5.1 and Docker Desktop 4.23. |
+1 can also confirm those steps work on 13.4.1 and docker 4.24.2 |
+1 |
worked for me in Ventura upgrading to 4.25.0 |
Thanks @monaw! Also working for me on Docker Desktop 4.25.2 (129061) and Sonoma 14.1.1 |
Thanks @monaw . It worked for me as well
|
Thanks @monaw works for me as well macOS: 13.5.2 Ventura, Docker v 4.25 |
Thanks @monaw it worked on Sonoma Version 14.1 (23B74) |
Thankful to have tracked down this thread. Worked for me!
|
This helped, but after that, I constantly needed to run
|
One more for @monaw ’s solution - macOS Sonoma 14.2.1 & Docker Desktop 4.26.1 — Thanks |
Same Problem on MacOS X Ventura, Docker Desktop 4.26.1. |
MacOS Sonoma 14.2.1 with Docker Desktop v4.26.1, same issue and same fix from @monaw worked great. Would be great to get this fixed directly and not require a workaround. |
Updated to v4.31.0 today and it re-broke me. #6677 (comment) is still necessary to resolve this issue :-/ |
i resolved this issue on my Mac with complete deinstall docker desktop (including remove config files) and reinstall new version. |
tried, issue still present |
I can confirm the same here as @StephenHinck |
@ThePlastic - reinstall has worked for me so far (and the fix has persisted through one upgrade). Follow the full instructions here: https://docs.docker.com/desktop/uninstall/, including the three terminal commands. |
Insane. @monaw you are a legend. The commands are still needed. |
I didi it, step by step, still need the 2 commands listed above.... |
The solve that worked for me was going to Settings -> Advanced and selecting "Allow privileged port mapping". |
Worked for me as well. |
Same. Thanks! |
This still happens (reported to me several times this week) and yet the issue is closed, and the fix is still to run the two commands. |
@mat007 maybe a regression but it's not fixed in 4.20.1 |
Still got the issue in 4.34.3, ^ fixes the problem for me aswel. |
Had same issue after updating to Docker to 4.36.0 and this fixed it ✔️✔️ |
4.37.2 Checking in. Still an issue. Still resolved by...
|
Yup, still an issue. I gave up hope, so I placed the commands in a function in function fixdocker() {
sudo /Applications/Docker.app/Contents/MacOS/install remove-vmnetd
sudo /Applications/Docker.app/Contents/MacOS/install vmnetd
} All you do is type |
Original issue creator here: After all the issues I had in the past with Docker Desktop, I finally switched to a new Docker replacement called OrbStack. Check it out if you’re looking for something with fewer problems and much faster performance, including shorter startup times: https://orbstack.dev/ |
I've heard of Orb and been wanting to try it out, but I need to research how disruptive the switch would be and I've just been way too busy to even think about it lately. I'm pretty dependent on DDev and not sure if they are compatible. Definitely glad to hear another positive comment about it though. Docker is so unreliable. |
@skoskie For me, there was no disruption. Picked it up immediately.
One of my projects uses DDev and works fine with OrbStack. |
@skoskie yes for me also, used mix of DDEV, Warden, RollDev and its al good and working correctly. OrbStack is also giving you a migration option to seamlessly transfer all projects, containers, volumes and images so you will not loose any data :) |
Expected behavior
When running our local devstack it needs to be binding to port 53 (priviliged port) and it needs to have the vmnetd running but is isn't stated in the error:
Error response from daemon: Ports are not available: exposing port UDP 127.0.0.1:53 -> 0.0.0.0:0: failed to connect to /var/run/com.docker.vmnetd.sock: is vmnetd running?: dial unix /var/run/com.docker.vmnetd.sock: connect: no such file or directory
in the docs stated the following:
If the privileged helper process is not running, Docker Desktop prompts the user for authorization to run it under launchd.
The priviliged port helper vmnet deamon needs to be installed when a prompt pops up and give permission.
Actual behavior
The prompt for installing the deamon never pops up and throws this error:
Error response from daemon: Ports are not available: exposing port UDP 127.0.0.1:53 -> 0.0.0.0:0: failed to connect to /var/run/com.docker.vmnetd.sock: is vmnetd running?: dial unix /var/run/com.docker.vmnetd.sock: connect: no such file or directory
This happens every restart of docker for mac
Information
Output of
/Applications/Docker.app/Contents/MacOS/com.docker.diagnose check
Steps to reproduce the behavior
Error response from daemon: Ports are not available: exposing port UDP 127.0.0.1:53 -> 0.0.0.0:0: failed to connect to /var/run/com.docker.vmnetd.sock: is vmnetd running?: dial unix /var/run/com.docker.vmnetd.sock: connect: no such file or directory
The text was updated successfully, but these errors were encountered: