windows - 无法在 Window 8 上切换 Docker 操作系统
问题描述
我已经在 Windows 8 上安装了 Docker 工具箱,并且能够运行 Docker 容器。但是我的系统托盘中没有 Docker 图标,因此我无法更改 Docker 设置。具体来说,我需要将 Docker 操作系统从 Linux 切换到 Windows。
有没有办法让图标显示在系统托盘中?有没有人遇到过这个问题?
或者,是否可以从 CLI 切换 Docker 操作系统?根据 Docker 论坛,我需要运行 SwitchDeamon,但是我在 Docker 安装文件夹中没有这个工具,VisualStudio 也无法切换操作系统。
解决方案
请参阅微软文档:
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 上进行切换。
推荐阅读
- php - Codeigniter:实现搜索功能
- python - 如何使用多个 IF 语句 Python 迭代效率更高
- scala - 通过 RDD 计算文本文件中每个国家/地区的单词
- vue.js - Vuetify Flex Layout - 没有填充高度
- sql - 请帮助sqlerror
- c# - 我应该调用哪种方法来获取 c# Xamarin 表单中编辑器的标题?
- flutter - FutureBuilder 无法与 Firestore 一起正常工作
- android - RecyclerView 列表中的蓝牙设备
- electron - 使用 Electron 保存二进制数据
- python - Python - 在运行时传递变量