machine-drivers / docker-machine-driver-xhyve

docker-machine/minikube/minishift driver plugin for xhyve/hyperkit (native macOS hypervisor.framework)
https://godoc.org/github.com/machine-drivers/docker-machine-driver-xhyve
BSD 3-Clause "New" or "Revised" License
889 stars 73 forks source link

Feature: `--xhyve-experimental-attach-image` allows to attach a custom disk image #120

Open huguesalary opened 8 years ago

huguesalary commented 8 years ago

Using the new --xhyve-experimental-attach-image argument, one can specify a path to an existing disk image to attach to the virtual machine.

For example: docker-machine create -d xhyve --xhyve-experimental-attach-image ~/myDiskImage.sparsebundle test

This code might not be bullet proof. It was a quick implementation to see if it was at least feasible. It's a good starting point for anybody wanting to code this feature.

Known bug: