codekitchen / dinghy

faster, friendlier Docker on OS X. Deprecated.
MIT License
2.12k stars 109 forks source link

Hyperkit support #295

Open JesusTheHun opened 3 years ago

JesusTheHun commented 3 years ago

hyperkit seems to have become the future of xhyve. According to https://github.com/machine-drivers/docker-machine-driver-hyperkit :

The Hyperkit driver will eventually replace the existing xhyve driver and uses moby/hyperkit as a Go library.

Do you think it's possible for you to add the support of hyperkit in a remotely near future ?

codekitchen commented 3 years ago

I wasn't familiar with this new driver, thanks for bringing it to my attention. But to be honest I'm a bit confused by that repo -- it hasn't seen any activity in almost two years, and some of the open issues and PRs sound critical to getting it into an actual usable state.

Adding support to Dinghy should in theory be very simple but I don't think I would bother until the driver is stabilized more.

JesusTheHun commented 3 years ago

This driver is offered by minikube so I would say it's stable. They actually advertise it as a more stable version of xhyve (among other things). I think the repo is just the docker driver interface, the actual driver is here https://github.com/moby/hyperkit

codekitchen commented 3 years ago

Yes, I'm talking specifically about the docker-machine driver project that you linked to, not hyperkit itself. But the docker-machine interface is what dinghy would be using, since dinghy uses docker-machine under the hood.

JesusTheHun commented 3 years ago

Ok. I see this package in every doc I look into, including minishift. But it is indeed weird that this package looks... abandoned ?

I tried to use docker-machine create -d hyperkit but sadly I already had issues (leading me to search for another driver) so I'm not sure if my setup is the issue (most likely) or the package.

codekitchen commented 3 years ago

Dang, that stinks. Let me know if you do get it working at some point.

JesusTheHun commented 3 years ago

To clarify I had issues with xhyve and Big Sur, I think it broke things. So I used a fork that has PR merged ( https://github.com/zazula/docker-machine-driver-hyperkit ) and followed the few instructions, and it works great !

I created the machine directly with docker-machine and dinghy can start and stop it without trouble. It's only been a few hours but so far so good :)

codekitchen commented 3 years ago

Cool yeah, dinghy doesn't actually care which driver you're using once the machine is created, it just needs to know in order to pass the correct create options. So that'll work great as a workaround. Hopefully that PR will get merged in at some point.

JesusTheHun commented 3 years ago

Just to give a head's up : one month are everything runs just perfectly with https://github.com/zazula/docker-machine-driver-hyperkit. The original repo seems idle for a long time now.