![](/img/trans.png)
[英]In Docker Desktop for windows 10 with WSL2, where does docker containers live & how Linux containers can run a java app, but not windows nanoserver?
[英]How does Docker for Windows run Linux containers?
在旧版本的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仍然使用Linux VM来运行Linux容器。 但是,不使用Virtual Box(与Docker Toolbox一起使用),而是使用Hyper-V(一种Windows本机虚拟机管理程序)运行Linux VM。 这意味着Docker for Windows可以运送更少的组件并且移动部件更少。
如果您安装Docker for Windows并运行docker version
您将看到Docker Linux守护程序正在“Moby Linux”上运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.