首页 > 解决方案 > 无法在 Window 8 上切换 Docker 操作系统

问题描述

我已经在 Windows 8 上安装了 Docker 工具箱,并且能够运行 Docker 容器。但是我的系统托盘中没有 Docker 图标,因此我无法更改 Docker 设置。具体来说,我需要将 Docker 操作系统从 Linux 切换到 Windows。

有没有办法让图标显示在系统托盘中?有没有人遇到过这个问题?

或者,是否可以从 CLI 切换 Docker 操作系统?根据 Docker 论坛,我需要运行 SwitchDeamon,但是我在 Docker 安装文件夹中没有这个工具,VisualStudio 也无法切换操作系统。

标签: windowsdockeroperating-system

解决方案


请参阅微软文档

Windows 容器包括两种不同的容器类型或运行时:Windows Server 容器和 Hyper-V 隔离

这意味着 windows 容器只能与 hyper-v 或 windows server 2016+ 一起使用,因此如果您不使用服务器版本,则必须使用支持 hyper-v 的 windows 10 专业版来运行 windows 容器。

使用docker toolbox(not docker for windows),您可以只使用 virtualbox 来运行 linux 容器。所以如果你用windows7、windows8、windows10家庭版,那你肯定用docker toolbox,那你就用linux容器就好了。

这里还有一个关于docker 论坛的讨论。

docker toolbox因此,仅仅支持 linux 容器就没有必要在 windows8 上进行切换。


推荐阅读