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

我使用脚本的方式

相关推荐
changxiang5 分钟前
Jenkins备忘
运维·jenkins
biter down11 分钟前
4:Ubuntu 22.04 安装完成后的收尾与优化
linux·运维·ubuntu
热爱运维的小七17 分钟前
深度解析|应用性能 + RUM + 拨测:现代 IT 运维的可观测性“铁三角”
运维·it运维·devops·apm·rum·网站拨测
zhuhai_xigedian17 分钟前
物联网技术在源网荷储系统中的创新应用
大数据·运维·人工智能·区块链·能源
xsc-xyc21 分钟前
CasaOS + Docker 挂载外接硬盘部署 Jellyfin 私人影院
运维·docker·容器
码云骑士21 分钟前
27-Docker部署Django(上)-从2GB到180MB的镜像瘦身实战
docker·容器·django
日取其半万世不竭25 分钟前
PostgreSQL 跑在 Docker 里怎么备份?恢复成功才算备份成功
数据库·docker·postgresql
至此流年莫相忘29 分钟前
WSL2 下 Docker Desktop 完全配置指南:从安装到极速体验
运维·docker·容器
烂白菜29 分钟前
码道启辰:定时任务自由编排
运维·服务器·网络
悠悠1213842 分钟前
Linux 7.1 来了:新 NTFS 驱动、干掉 i486、FRED 默认开启,这次更新有点东西
linux·运维·服务器