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

我使用脚本的方式

相关推荐
会飞的大可3 分钟前
Docker容器项目无法访问MySQL的解决策略
mysql·docker·容器
钟智强6 分钟前
Linux SSH密码爆破脚本,从原理到实践
linux·运维·ssh
cool32009 分钟前
二进制基于kubeasz部署 K8s 1.34.x 高可用集群实战指南-第一章节基础环境准备(1-4)
云原生·容器·kubernetes
Linux蓝魔34 分钟前
麒麟官方yum源配置V10SP2-V10SP3-V10SP3-2403
大数据·linux·运维
helloliyh35 分钟前
linux 删除指定日期目录(包括目录下文件)
linux·运维·服务器
半个俗人1 小时前
06.Linux用户权限相关命令
linux·运维·服务器
涛声依旧393161 小时前
构建部署kubernetes所需主机
linux·运维·云原生·容器·kubernetes
Chris _data1 小时前
S7-1500 常用工业通信协议详解与对比
运维·服务器·网络
dashizhi20151 小时前
服务器共享文件禁止下载、禁止拖动共享文件到本地磁盘、禁止拷贝共享文件
运维·服务器·windows
实在智能RPA2 小时前
Agent上线后有专人运营支持吗?深度解析AI Agent的全生命周期运维保障体系
运维·人工智能·ai