01

您所在的位置:网站首页 mac怎么完全卸载docker 01

01

2024-07-17 03:31| 来源: 网络整理| 查看: 265

声明:

​本文用于本人技术学习和备忘。水平有限,如有错漏欢迎指正! 原创不易,如有转载请标注出处:https://blog.csdn.net/luyou0401/article/details/126564699

目录 01-Mac卸载Docker官方文档文档摘录Uninstall Docker Desktop(下附中文翻译)卸载Docker桌面(对应英文) 卸载实例方式一、图形界面卸载方式二、命令行卸载

01-Mac卸载Docker

在这里插入图片描述

Docker版本号:20.10.17

yaco@MacBook-Pro-yaco MacOS % cd yaco@MacBook-Pro-yaco ~ % docker --version Docker version 20.10.17, build 100c701 官方文档

官方文档地址:https://docs.docker.com/desktop/install/mac-install/#uninstall-docker-desktop

文档摘录 Uninstall Docker Desktop(下附中文翻译)

To uninstall Docker Desktop from your Mac:

From the Docker menu, select Troubleshoot and then select Uninstall.Click Uninstall to confirm your selection.

Uninstall Docker Desktop from the command line

To uninstall Docker Desktop from a terminal, run: --uninstall. If your instance is installed in the default location, this command provides a clean uninstall:

$ /Applications/Docker.app/Contents/MacOS/Docker --uninstall Docker is running, exiting... Docker uninstalled successfully. You can move the Docker application to the trash.

You might want to use the command-line uninstall if, for example, you find that the app is non-functional, and you cannot uninstall it from the menu.

Note

Uninstalling Docker Desktop destroys Docker containers, images, volumes, and other Docker related data local to the machine, and removes the files generated by the application. Refer to the back up and restore data section to learn how to preserve important data before uninstalling.

卸载Docker桌面(对应英文)

从 Mac 卸载 Docker Desktop:

从 Docker 菜单中,选择疑难解答,然后选择卸载。单击卸载以确认您的选择。

从命令行卸载 Docker Desktop

要从终端卸载 Docker Desktop,请运行 --uninstall:如果您的实例安装在默认位置,则此命令提供干净卸载:

$ /Applications/Docker.app/Contents/MacOS/Docker --uninstall Docker is running, exiting... Docker uninstalled successfully. You can move the Docker application to the trash.

例如,如果您发现应用程序无法运行,并且您无法从菜单中卸载它,您可能想要使用命令行卸载。

笔记

卸载 Docker Desktop 会破坏机器本地的 Docker 容器、镜像、卷和其他 Docker 相关数据,并删除应用程序生成的文件。请参阅备份和恢复数据部分,了解如何在卸载前保留重要数据。

卸载实例 方式一、图形界面卸载

1、在菜单栏选择Docker图标,点击选择“Troubleshoot”;

在这里插入图片描述

2、在“Uninstall”选项,点击“Uninstall”按钮

在这里插入图片描述

弹框确认卸载

在这里插入图片描述

3、执行结果

在这里插入图片描述

4、卸载“Docker Desktop”应用

在这里插入图片描述

方式二、命令行卸载

1、执行卸载命令

/Applications/Docker.app/Contents/MacOS/Docker --uninstall

2、执行结果

Docker is running, exiting... Docker uninstalled successfully. You can move the Docker application to the trash.

声明:

本文用于本人技术学习和备忘。水平有限,如有错漏欢迎指正! 原创不易,如有转载请标注出处:https://blog.csdn.net/luyou0401/article/details/126564699



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3