是否执行"Windows上的Docker"?启动Linux虚拟机? [英] Does "Docker On Windows" launch a linux virtual machine?

查看:70
本文介绍了是否执行"Windows上的Docker"?启动Linux虚拟机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道,旧的Docker Toolbox使用VirtualBox通过 boot2docker ,这是最小的轻量级Linux操作系统.现在,有了新的 Windows上的Docker ,他们声称他们使用了直接在Windows 10 Pro上使用HyperVisor.

I'm aware that the old Docker Toolbox uses VirtualBox to run a minimal linux virtual machine for Docker using boot2docker which is a minimal light-weight Linux OS. Now, with the new Docker on Windows they claim that they use HyperVisor on Windows 10 Pro directly.

这是否意味着 Windows上的Docker 软件包完全摆脱了Linux虚拟机,还是Windows上仍在使用Linux虚拟机?

Does this mean the Docker on Windows package got rid of the Linux virtual machine totally, or is there still a Linux virtual machine being used on Windows?

推荐答案

如果容器可以直接在主机操作系统上运行,则将其视为本机".

A container is considered "native", if it can run directly on the host operating system.

Linux容器-在隔离的Linux环境中运行的Linux应用程序.可以在使用虚拟化来模拟Linux环境的Windows操作系统上运行相同的容器,但是该容器仍在Linux上运行.

Linux Container - A Linux application that runs in an isolated Linux environment. This same container can be run on a Windows OS using virtualization to emulate a Linux environment, but the container is still running on Linux.

Windows(服务器)容器-在隔离的Windows环境中运行的Windows应用程序.

Windows (Server) Container - A Windows application that runs in an isolated Windows environment.

在Windows上运行Linux容器的Docker需要虚拟化.可用的选项是:
VirtualBox(Docker工具箱)
Hyper-V后端(Docker桌面)
WSL2后端(Docker桌面)

Docker on Windows to run a Linux container requires virtualization. The available options are:
VirtualBox (Docker Toolbox)
Hyper-V backend (Docker Desktop)
WSL2 backend (Docker Desktop)

容器(和 Docker )术语非常混乱,尤其是对于Windows细微差别.有关具有许多有用参考链接的概述,请参见 Linux和Windows中的Docker容器.

The Container (and Docker) terminology is very confusing, especially with Windows nuances. See Docker Container in Linux and Windows for an overview with many useful reference links.

这篇关于是否执行"Windows上的Docker"?启动Linux虚拟机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆