Search code examples
dockerdocker-imagewindows-container

Base Docker image from existing Windows machine


We have a large application with several parts running on a Windows VM and I am trying to evaluate Docker containers for our application deployment. Is it possible to create a base docker image from an existing Windows VM already running my application? (I know this can be done using Dockerfile but I am looking for a quick way to create the image)

https://docs.docker.com/engine/userguide/eng-image/baseimages/ Above link describes creating image from working machine for Linux, but I am looking for something similar for Windows.


Solution

  • 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.