且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是否执行"Windows上的Docker"?启动Linux虚拟机?

更新时间:2022-05-07 08:17:35

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

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.