none
Windows Server Docker Containers & Managing Virtual Hard Disks RRS feed

  • Question

  • I work with several software engineering groups and want to have their workflow happen inside of Docker containers.  One of their artifacts requires block storage.  Their workflow utilizes diskpart to create a virtual hard disk, mount the disk, create partitions, formats partitions, then adds files.

    However I am unable to get diskpart or powershell disk commands to properly run inside of any docker container.  I have tried microsoft/windowsservercore, microsoft/windowsservercore:1709, & also microsoft/windowsservercore-insider with and without hyperv isolation.  

    Diskpart Error:

    "Virtual Disk Service error:
    The service failed to initialize."

    Powershell & Other Errors:

    "A virtual disk support provider for the specified file was not found"

    Any ideas on how to accomplish this?

    Friday, December 1, 2017 8:56 PM

All replies

  • I had a success with Virtual Hard Disk creation by utilizing qemu-img for Windows.  (https://cloudbase.it/qemu-img-windows/)  However I have not found a way to mount the virtual disks.  

    I've also been exploring Linux Containers On Windows (https://blog.docker.com/2017/09/preview-linux-containers-on-windows/).  The nbd kernel module is not included in the LCOW kernel for attaching devices.  I will be experimenting more with my own custom LCOW kernel using (https://github.com/Microsoft/opengcs).


    Friday, December 1, 2017 9:02 PM
  • Hi ,

    Based on the complexity and the specific situation, we need do more researches. If we have any updates or any thoughts about this issue, we will keep you posted as soon as possible. Your kind understanding is appreciated. If you have further information during this period, you could post it on the forum, which help us understand and analyze this issue comprehensively.

    Sorry for the inconvenience and thank you for your understanding and patience.

    Best Regards,

    Candy


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Wednesday, December 6, 2017 8:21 AM
    Moderator
  • Hi,

    Is there any update on running diskpart in dockers containers?

    Thanks

    Tuesday, April 9, 2019 3:14 AM
  • Aravind, 

    I doubt this is a priority for that particular team.  You might want to reach out to the EWDK contacts about requesting the feature.  I think there was an open bug sync ticket somewhere.

    Sunday, October 13, 2019 7:43 PM