Uninstalling Docker on macOS
Recently, we have seen widespread adoption of Docker as the ultimate containerization platform. Because of this, setting up Docker on all platforms has been greatly simplified, including macOS and Windows.
However, some users usually face problems while removing docker from their system due to one reason or another. Apart from the main Docker files which we can get rid of easily, Docker also creates files and embeds them into system folders.
In this article, we will discuss how to remove the Docker application for macOS and manually delete its application files.
Uninstalling the Docker application in macOS
-
We will make sure that the Docker application and its background processes are not running. Eliminate this process through Activity Monitor by selecting any
"Docker"
process named and clicking on it .退出进程
-
In Finder, navigate to the Applications folder. Go ahead and find Docker in the list of applications and move it to the bin.
Removing the Docker application from the Applications folder does not mean that we have removed Docker from the system. Along with other important files, these files are usually stored
Library
under the folder.Since these files are usually hidden, we need to first find
Library
the folder, find the files and subdirectories related to Docker and delete them. -
Click Options at the top of the menu bar under Finder
Go
. Under this menu at the very bottom, click转到文件夹
Options. -
After clicking
Go to Folder
, a search box will open. Type in this box~/Library
and clickGo
the button.This will allow us to access the Library folder as shown below.
-
Find the subpackages belonging to docker and delete them. We can start by deleting
Applications Scripts
the docker foldercom.docker.helper 文件夹
. -
Under
Caches
the folder, find and deletecom.docker.docker 文件夹
the folder. -
Go into
Containers
the folder and deletecom.docker.helper
the folders next to the foldercom.docker.docker
. The three folders we have highlighted below. -
Now that we have gotten rid of the main docker folder, we will remove the remaining files related to your Docker installation. Access the folders and subfolders below and delete them from your system.
~/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
Deleting these files from your system and emptying your Trash folder will successfully remove the Docker installation from your Mac. Alternatively, if you want an easier method, there are plenty of application uninstallers available.
For reprinting, please send an email to 1244347461@qq.com for approval. After obtaining the author's consent, kindly include the source as a link.
Article URL:https://www.jiyik.com/en/xwzj/opersys_10093.html
Related Articles
Copy files from host to Docker container
Publish Date:2025/03/25 Views:126 Category:Docker
-
This article will discuss and demonstrate methods we can use to transfer files from the host to a running container in Docker. docker cp Copy the file from the host to the Docker container using docker cp The command is one of the simplest
Get the IP address of the Docker container
Publish Date:2025/03/25 Views:102 Category:Docker
-
This article demonstrates how to get the IP address of a Docker container. Connect to the Bridge network and get the IP address of the Docker container One of the big reasons why docker containers are so convenient is that we can easily con
Tagging images with Docker and Docker Compose
Publish Date:2025/03/25 Views:70 Category:Docker
-
When creating a Docker image, it is best practice to give it a descriptive and meaningful name. This process makes identifying and managing images more manageable, especially when dealing with many images. This article discusses tagging ima
Creating a database user with Docker Postgres
Publish Date:2025/03/24 Views:166 Category:Docker
-
When developing applications, we usually use database management systems such as PostgreSQL, MySQL, MongoDB, etc. to record application data. Docker helps us run an instance of these application database management systems. This helps save
Adding unsafe registry keys in Docker
Publish Date:2025/03/24 Views:130 Category:Docker
-
While it is highly recommended to secure your registry using a Transport Layer Security (TLS) certificate issued by a known Certificate Authority (CA), we have the option of using our insecure registry over an unencrypted Hypertext Transfer
List all images in Docker Registry V2
Publish Date:2025/03/24 Views:131 Category:Docker
-
After several iterations, Docker Registry was upgraded from version 1 to version 2. Especially being new, some commands needed to be included or adequately documented on its official documentation website. An example is getting a list of im
Executing multiple commands in Docker-Compose
Publish Date:2025/03/24 Views:152 Category:Docker
-
Docker makes it easier for developers to build, test, and deploy applications without worrying about dependencies by packaging them in standardized units called containers. Docker-compose is an advanced, must-have tool for managing multi-co
View logs for a specific Docker Compose service
Publish Date:2025/03/24 Views:60 Category:Docker
-
When using docker-compose up, we can see the logs of all containers in the YAML file; however, if we specify a specific container service, the output will not show any service dependencies in the log. Therefore, this article will explore ho
Differences between Docker and Docker Compose
Publish Date:2025/03/24 Views:147 Category:Docker
-
Both docker and docker compose docker run Docker containers. The two Docker constructs are comparable, but that's about it. This article will discuss docker compose the main differences between docker and . Differences between Docker and Do