Open sixeyed opened 8 years ago
That'd be nice. +1
How about this one:
docker run happysysadm/image2docker sample.vhdx
Let me know how it goes.
Good work @happysysadm! Do you have your Dockerfile in a repo we can see?
@sixeyed here it comes: https://gist.github.com/happysysadm/d998a0d1904d52b508a71982e81c2a14
Actually it is a pretty simple dockerfile. I also wrote a post describing the build process but this can for sure be improved: http://www.happysysadm.com/2016/11/building-docker-container-for.html
I'll blog more on the subject while I build my own knowledge.
I'm missing a -v
option, right? Would be very great to make it so easy, but I guest the container needs a volume mount.
@StefanScherer is right on the volume mount, but @happysysadm thanks for contributing. If you add your Dockerfile in a PR I will merge and we can iterate on it.
With PowerShell dependencies & the tool module installed, so you can do
docker run docker/image2docker my.vhd
on any Windows box.