Mac 启动docke报错 com.docker.vmnetd【解决方案】

今天不知道 docker抽了啥疯,突然提示更新,更新完就报错

而且还无限的提示,下载最新的版本,更新还是不行---

于是google查了一下,噢噢噢噢,果然有问题

issiue如下

Malware detection prevents Docker Desktop to start #7527

解决方案

Those warnings are inaccurate. Docker Desktop is not affected by malware!

The root cause has been identified: some files in existing installations are incorrectly signed which can be fixed by copying correctly signed files from the Docker.app application bundle.

Patch Releases

Tip

There are now patch releases for Docker Desktop versions 4.32 to 4.37 available. Please refer to Fix startup issue for Mac | Docker Docs for more detail.

Workaround

Privileged users

Tip

If you face this issue, try the following procedure (requires root user access):

  1. Quit Docker Desktop and check that no remaining docker processes are running using the Activity Monitor
  2. Run the following commands:

创建一个文件

给到对应的权限

bash 复制代码
#!/bin/bash

# Stop the docker services
echo "Stopping Docker..."
sudo pkill '[dD]ocker'

# Stop the vmnetd service
echo "Stopping com.docker.vmnetd service..."
sudo launchctl bootout system /Library/LaunchDaemons/com.docker.vmnetd.plist

# Stop the socket service
echo "Stopping com.docker.socket service..."
sudo launchctl bootout system /Library/LaunchDaemons/com.docker.socket.plist

# Remove vmnetd binary
echo "Removing com.docker.vmnetd binary..."
sudo rm -f /Library/PrivilegedHelperTools/com.docker.vmnetd

# Remove socket binary
echo "Removing com.docker.socket binary..."
sudo rm -f /Library/PrivilegedHelperTools/com.docker.socket

# Install new binaries
echo "Install new binaries..."
sudo cp /Applications/Docker.app/Contents/Library/LaunchServices/com.docker.vmnetd /Library/PrivilegedHelperTools/
sudo cp /Applications/Docker.app/Contents/MacOS/com.docker.socket /Library/PrivilegedHelperTools/
  1. Restart Docker Desktop

If that still doesn't work, download one of the currently supported release from the Release notes, re-install the application and then finally re-apply step 2.

Non-privileged users

If the above instructions can't be used because you don't have root privileges or your Docker Desktop installation is managed by a Mobile Device Management solution, the above script needs to be executed by the MDM tool. Please contact your system administrators or Docker org owner for support.

Homebrew users

If you've installed Docker Desktop with Homebrew, you can update it to the latest version using brew update && brew upgrade --cask docker.

官方解决方案

Resolve the recent Docker Desktop issue on macOS

我使用脚本的方式

相关推荐
麦a~M了M44 分钟前
ansible
linux·运维·ansible
川石教育2 小时前
测试工程师如何学会Kubernetes(k8s)容器知识
云原生·容器·kubernetes·kubernetes容器·kubernetes教程
2501_906314322 小时前
MCP-RAG 服务器:完整设置和使用指南
运维·服务器
QQ_4376643142 小时前
Linux下可执行程序的生成和运行详解(编译链接汇编图解)
linux·运维·c语言·汇编·caffe
搬码临时工2 小时前
远程连接电脑的方法?异地远程桌面连接和三方软件实现
运维·服务器·网络·物联网·电脑·远程工作
窦再兴3 小时前
来一个复古的技术FTP
linux·运维·服务器
梦在深巷、3 小时前
nginx配置之负载均衡
运维·nginx·负载均衡
小黑_深呼吸3 小时前
Prometheus实战教程:k8s平台-Mysql监控案例
运维·学习·kubernetes·prometheus
THMAIL4 小时前
mac M芯片运行docker-desktop异常问题
macos·docker·容器
疯狂的挖掘机4 小时前
记一次从windows连接远程Linux系统来控制设备采集数据方法
linux·运维·windows