![](/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.