繁体   English   中英

是否可以在虚拟机上启动 docker?

[英]Is it Posible to start docker on Virtual Machine?

我想在我的虚拟机上安装 Docker 桌面。 VM Window 10 Pro 规格。 64 位处理器。8 GB 内存。 安装成功完成,但没有启动应用程序。 我检查了hyper-V是检查。 我尝试了不同的方法,但仍然无法正常工作。 需要帮忙

Actually when using Docker Desktop on Windows or on macOS the docker daemon already is running in a VM since docker / containers are based on namespaces in the Linux Kernel.

But this means that "running Docker Desktop on a Windows VM" would require to start a Linux VM (which is the actual docker host) inside the Windows VM! 为此,您需要有一个嵌套虚拟化的工作设置,以允许在 VM 内启动 VM。

docker不正式支持此功能,请参阅在嵌套虚拟化场景中运行 Docker 桌面

Another approach you could try though is to manually a Linux VM next to the Windows VM, ie on the same hardware host you are running the Windows VM on, and connect with the docker command from your Windows VM to the docker VM, see DOCKER_HOST .

但在此设置中,Windows VM 和端口转发工作需要更多手动步骤...

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM