在 macOS 上卸载 Docker
最近,我们已经看到 Docker 作为终极容器化平台被广泛采用。正因为如此,在所有平台上设置 Docker 都得到了极大的简化,包括 macOS 和 windows。
然而,一些用户在从他们的系统中删除 docker 时通常会因为某种原因而遇到问题。除了我们可以轻松摆脱的主要 Docker 文件外,Docker 还创建文件并将它们嵌入到系统文件夹中。
在本篇文章中,我们将探讨如何删除 macOS 的 Docker 应用程序并手动删除其应用程序文件。
在 macOS 中卸载 Docker 应用程序
-
我们将确保 Docker 应用程序及其后台进程没有运行。通过选择任何名为
"Docker"
的进程并单击退出进程
,通过活动监视器消除此进程。 -
在 Finder 下,导航到 Applications 文件夹。继续在应用程序列表中找到 Docker 并将其移至 bin。
从 Applications 文件夹中删除 Docker 应用程序并不意味着我们已经从系统中删除了 Docker。与其他重要文件一起,这些文件通常存储在
Library
文件夹下。由于这些文件通常是隐藏的,所以我们需要首先找到
Library
文件夹,找到与 Docker 相关的文件和子目录并将它们删除。 -
单击 Finder 下菜单栏顶部的
Go
选项。在最底部的此菜单下,单击转到文件夹
选项。 -
单击
Go to Folder
后,将打开一个搜索框。在此框中键入~/Library
,然后单击Go
按钮。这将使我们能够访问 Library 文件夹,如下所示。
-
找到属于 docker 的子包并将其删除。我们可以从删除
Applications Scripts
文件夹下的com.docker.helper 文件夹
开始。 -
在
Caches
文件夹下,找到并删除com.docker.docker 文件夹
文件夹。 -
进入
Containers
文件夹并删除com.docker.helper
文件夹旁边的com.docker.docker
文件夹。我们在下面突出显示的三个文件夹。 -
现在我们已经摆脱了主要的 docker 文件夹,我们将删除与你的 Docker 安装相关的其余文件。访问下面的文件夹和子文件夹并将它们从系统中删除。
~/Library/Saved Application State/com.electron.docker-frontend.savedState ~/Library/Cookies/com.docker.docker.binarycookies /Library/LaunchDaemons/com.docker.vmnetd.plist ~/Library/Preferences/com.electron.docker-frontend.plist /usr/local/lib/docker ~/.docker ~/Library/Application Support/Docker Desktop ~/Library/Preferences/com.docker.docker.plist ~/Library/Group Containers/group.com.docker ~/Library/Logs/Docker Desktop /Library/PrivilegedHelperTools/com.docker.vmnetd
从系统中删除这些文件并清空垃圾文件夹将成功从 Mac 中删除 Docker 安装。或者,如果你想要更简单的方法,可以使用大量的应用程序卸载程序。
相关文章
Get the IP address of the Docker container from the host using docker inspect
发布时间:2025/03/26 浏览次数:102 分类:Docker
-
Docker containers are not just for isolation—they are often used to manage processes that still need to communicate directly with each other. However, to communicate, you usually need to know the IP address of each container, which you ca
Solution to incorrect access log time when deploying Nginx in Docker
发布时间:2025/03/26 浏览次数:165 分类:Docker
-
In the process of operating the website, I never took the logs too seriously. Although logging was turned on, I never analyzed the logs carefully. Today, when I looked at the logs on a whim, I found that the recorded time was 8 hours less t
Docker deploys nginx php application
发布时间:2025/03/26 浏览次数:131 分类:Docker
-
I'm learning docker recently. I'm learning by building an nginx+php development environment example. Here I record the build process. First, give a docker-compose.yml deployment configuration file version: '3' services: nginx: container_nam
How to use Docker to image a Node.js web application
发布时间:2025/03/26 浏览次数:107 分类:Docker
-
Docker is a containerization platform that simplifies the packaging and execution of applications. Containers run as independent processes with their own file systems, but share the kernel of their host machine. Docker has attracted much at
Start a Bash terminal in a new Docker container
发布时间:2025/03/26 浏览次数:97 分类:Docker
-
Docker containers are a standard unit for packaging all the dependencies of an application, allowing us to easily run them in any environment. Containers have become very popular recently, and most developers now rely heavily on containers
Passing environment variables to containers in Docker
发布时间:2025/03/26 浏览次数:124 分类:Docker
-
This article will introduce how to pass environment variables to containers in Docker. Passing environment variables to containers in Docker using the -e and tags -env We will first see how to create environment variables and pass them to t
Install Docker using Homebrew
发布时间:2025/03/26 浏览次数:202 分类:Docker
-
There is no doubt that Docker containers have revolutionized the way we develop and deploy applications. They provide developers with the ability to package applications and dependencies in an isolated environment. Recently, we've seen wide
Enforce clean build of images in Docker
发布时间:2025/03/26 浏览次数:87 分类:Docker
-
This article discusses and demonstrates how to enforce clean builds of images in Docker. Building images in Docker We will use a simple Flask application to demonstrate this concept. my-app Create a app.py simple application named in the ho
Running a Docker instance from a Dockerfile
发布时间:2025/03/26 浏览次数:140 分类:Docker
-
Docker containers have undoubtedly become the standard unit for managing software and dependencies in different environments. When using real applications, you must create a docker file before building the container image of the application