Mano Marks

Image2Docker: A New Tool for Prototyping Windows VM Conversions

Docker is a great tool for building, shipping, and running your applications. Many companies are already moving their legacy applications to Docker containers and now with the introduction of the Microsoft Windows Server 2016, Docker Engine can now run containers  natively on Windows.To make it even easier, there’s a new prototyping tool for Windows VMs that shows you how to replicate a VM Image to a container.

Docker Captain Trevor Sullivan recently released the Image2Docker tool, an open source project we’re hosting on GitHub. Still in it’s early stages, Image2Docker is a Powershell module that you can point at a virtual hard disk image, scan for common Windows components and suggest a Dockerfile. And to make it even easier, we’re hosting it in the Powershell Gallery to make it easy to install and use.

In Powershell, just type:

Install-Module -Name Image2Docker

And you’ll have access to Get-WindowsArtifacts and ConvertTo-Dockerfile. You can even select which discovery artifacts to search for.

Powershell.png

Currently Image2Docker supports VHD, VHDK, and WIM images. If you have a VMDK, Microsoft provides a great conversion tool to convert VMDK images to VHD images.

And as an open source project, lead by a Docker Captain, it’s easy to contribute. We welcome contributions to add more discovery objects and functionality.

More Resources:


 

Learn More about Docker

, , , , ,

Mano Marks

Image2Docker: A New Tool for Prototyping Windows VM Conversions


5 Responses to “Image2Docker: A New Tool for Prototyping Windows VM Conversions”

  1. Craig

    This "with the introduction of the Microsoft Windows Server 2016, Docker Engine can not run containers natively on Windows."

    should probably read: "with the introduction of the Microsoft Windows Server 2016, Docker Engine can now run containers natively on Windows."

    ?

    Reply
  2. ChethanGatty

    When can we expect vmdk to docker image conversion done from Image2Docker tool.

    Reply
  3. Mike Schinkel

    This looks promising. Question: Do you think this will work if your VM already uses Docker to manage containers internally?

    Reply
  4. Farrokh

    In "Currently Image2Docker supports VHD, VHDK, and WIM images. It is "VHDX".

    After "Install-Module -Name Image2Docker" the command that fonctionne is "Get-WindowsArtifact" without "s". It must be changed. That's why the result is some different.

    PS C:\windows\system32> Get-WindowsArtifact
    AddRemovePrograms
    AllWindowsFeatures
    Apache
    DHCPServer
    DNSServer
    IIS
    MSMQ
    SQLServer

    Reply

Leave a Reply

Get the Latest Docker News by Email

Docker Weekly is a newsletter with the latest content on Docker and the agenda for the upcoming weeks.