TBH I miss Vagrant. I wish there were a Dockerfile, but for VMs.
TBH I miss Vagrant. I wish there were a Dockerfile, but for VMs.
I'm currently working on a wrapper for QEMU that has docker-like semantics for pull/run/start/stop/exec/etc, but it will pull docker images from docker registries and convert them to qcow2 for you and run them in QEMU. It works on Linux and Windows and should run on MacOS and BSD eventually.
[0]: https://github.com/ForAllSecure/rootfs_builder
EDIT: Also see https://iximiuz.com/en/posts/from-docker-container-to-bootab...
Provisioner scripts can effectively be broken down from the Dockerfile RUN layers as Bash or Powershell scripts. Then output as a vagrant box or hypervisor VM export VM of choice. For exposing ports, just run an iptables or powershell New-NetFirewallRule.
Whilst you can't get volume mounts can use the file provisioner to embed local files on build.
Then import it and create a default snapshot. Want it back to its original state? Revert snapshot and done!