【发布时间】:2017-05-23 20:58:36
【问题描述】:
在旧版本的 Docker for Windows 中,我记得它明确表示它使用 linux VM 作为内核。
但是自从新的稳定版本(我认为是 2016 年 7 月发布)以来,它说
Docker for Windows is a native Windows application with a native user interface and auto-update capability, deeply integrated with Windows native virtualization, Hyper-V, networking and file system
如果我理解正确的话,指定的基本映像是用于用户空间的,并且使用了主机的内核。 那么,如果我指定使用 ubuntu 基础镜像来运行 echo 命令,那么 Windows 内核是如何发挥作用的呢?
还是我完全误解了什么?
【问题讨论】:
-
这个 Docker for Windows 只运行 Windows 容器
-
测试版可以在 Windows 和 Linux 容器之间切换。它在稳定版本中尚不可用。 docs.docker.com/docker-for-windows/#/…
-
那么,为什么我可以用最新的稳定版运行
docker run ubuntu /bin/echo 'Hello world'命令? -
我可以向您介绍其中一位架构师的演示文稿:Linux Containers on Windows -- The Inside Story,John Starks,DockerCon Europe 2017。