2

我们有一个大型应用程序,其中几个部分在 Windows VM 上运行,我正在尝试评估 Docker 容器以用于我们的应用程序部署。是否可以从已经运行我的应用程序的现有 Windows VM 创建基本 docker 映像?(我知道这可以使用 Dockerfile 来完成,但我正在寻找一种快速创建图像的方法)

https://docs.docker.com/engine/userguide/eng-image/baseimages/ 上面的链接描述了从 Linux 的工作机器创建图像,但我正在寻找类似的东西用于 Windows。

4

3 回答 3

1

我知道的唯一 Windows 基础镜像是Microsoft为 Windows Server 2016 或 1709提出的基础镜像。
请参阅“ PoC:如何在没有 1709 的情况下为 1709 构建镜像

这意味着您可以将任何 Widows VM 转换为映像。

你需要:

如果您的应用程序仅在 Windows VM 上运行,则需要确保它可以在这些基本 Windows 映像之一上安装和运行。

即使您使用的是 VM Windows server 2016,您也无法快速“捕获其状态”:您需要一个 Dockerfile 来描述您希望 Widows 容器运行的内容。

于 2017-12-13T22:15:53.000 回答
0

No it's not possible. You have some stuff like Vm2Docker etc but all it does the same thing you will do manually that is enumerate features installed and create some artifacts for you. But it's not possible to do for third party application as you mentioned. You'd have to disassemble it and figure out how to scripts to install it.

于 2017-12-14T18:56:15.637 回答
-2

I am looking for a way to have a Development environment of Production web server for our Developers/testers created using Docker on windows. I have windows server 2016 OS installed on a Physical server (not VM), and want to dockerize it so that Dev team can make changes on it first and once they confirm all working fine then same changes will be done on production web server.

Thanks, RK.

于 2018-05-24T15:40:40.367 回答