简体   繁体   English

如何在 MAC 上重置 docker 首选项

[英]How to reset docker preferences on MAC

I'm using Docker Desktop for M1 MAC and I was playing around with allocating different amount of resources and I have somehow ended up breaking the application.我正在为 M1 MAC 使用 Docker 桌面,我正在分配不同数量的资源,但我最终以某种方式破坏了应用程序。 Docker Desktop is constantly stopping/starting, I cannot open preferences as I only get the spinner and cannot proceed. Docker 桌面不断停止/启动,我无法打开首选项,因为我只有微调器并且无法继续。

I have reinstalled the app multiple times, tried all deletion scripts I could find online, deleted all Docker related files from the Library and ~/.docker , but upon reinstalling the app, my previous settings are still there (Starting Docker upon login is enabled, which is disabled by default).我已经多次重新安装了该应用程序,尝试了我可以在网上找到的所有删除脚本,从库和~/.docker中删除了所有与 Docker 相关的文件,但是在重新安装应用程序后,我以前的设置仍然存在(启动 ZC5FD2724CDD0D2BEBA54B 登录已启用) ,默认情况下禁用)。 I have also restarted my computer multiple times and tried resetting to factory settings and uninstalling from the Troubleshoot menu, but to no avail.我也多次重新启动计算机并尝试重置为出厂设置并从“疑难解答”菜单中卸载,但无济于事。

What could I do?我能做什么? Thanks!谢谢!

It is possible that something is set in your "defaults" that is upsetting docker .您的“默认值”中可能设置了一些让docker感到不安的东西。

If I generate a list of all "defaults" domains on my Mac, and search for docker , I get the following:如果我在我的 Mac 上生成所有“默认”域的列表,并搜索docker ,我会得到以下信息:

defaults domains | tr ',' '\n' | grep -i docker
com.docker.docker
com.electron.dockerdesktop

So, if all else is lost, you might consider using the defaults command to delete those two domains and hope that docker starts with sensible defaults, or then re-install.因此,如果所有其他内容都丢失了,您可以考虑使用defaults命令删除这两个域,并希望 docker 以合理的默认值启动,或者然后重新安装。 I haven't tried this as my docker instance is working nicely.我没有尝试过,因为我的 docker 实例运行良好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM