当前位置: 首页 > article >正文

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:

创建一个文件

给到对应的权限  

#!/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

我使用脚本的方式


http://www.kler.cn/a/502446.html

相关文章:

  • Redis快速入门店铺营业状态设置
  • 介绍PyTorch张量
  • 使用Docker模拟PX4固件的无人机用于辅助地面站开发
  • 基于“大型园区”网络设计
  • 深度学习-卷积神经网络反向传播梯度公式推导
  • Idea-离线安装SonarLint插件地址
  • 在 Safari 浏览器中,快速将页面恢复到 100% 缩放(也就是默认尺寸)Command (⌘) + 0 (零)
  • vue实现Nprogress进度条功能
  • 新版本的IDEA如何解决Git分支显示为警告⚠<unknown>的问题
  • Android ValueAnimator根据屏幕刷率动态出帧/刷新,Kotlin
  • NLP中的问答(Question answering)
  • C#中的类型转换以及异常处理--05
  • Python在Excel工作表中创建数据透视表
  • AI Agent:软件测试自动化的新纪元
  • C++中的条件变量(condition_variable)详解:小白版
  • 移动应用安全:保护用户隐私与数据的关键解决方案
  • 安全运营体系建设
  • 字符串 (算法十一)
  • 【8】深入理解 Go 语言中的协程-从基础到高级应用
  • django基于Python对西安市旅游景点的分析与研究
  • 探秘 JMeter (Interleave Controller)交错控制器:解锁性能测试的隐藏密码
  • Go语言之路————func
  • Golang笔记——语言基础知识
  • PyTorch 张量的分块处理介绍
  • 鸿蒙UI开发——带农历的日期滑动选择弹窗
  • 74 mysql having 的实现