google / gvisor

Application Kernel for Containers
https://gvisor.dev
Apache License 2.0
15.9k stars 1.31k forks source link

MacOS support #1270

Open ianlewis opened 5 years ago

ianlewis commented 5 years ago

gVisor running on MacOS could provide an environment for Mac users to develop and run Linux containers on a Mac machine without needing to install Linux via a VM or Docker for Mac etc.

Some investigation needs to happen in order scope out what would be needed.

sbrki commented 4 years ago

@ianlewis are you sure this would work? Linux syscalls could be translated into native Darwin syscalls by gvisor, but I think the host kernel (in this case Darwin) needs to have cgroups in order for this to work in the first place.

ianlewis commented 4 years ago

@psycadet Yeah, cgroups specifically may not be able to be supported natively. It may be that a virtualized shim (e.g. HyperKit) is needed like Docker for Mac or there may be other ways to make it work natively on a Mac. There will be a lot of challenges to be sure, but it would be an interesting feature if someone wanted to try and support it.

mauriciogg commented 2 years ago

Hey @ianlewis did this ever get any traction?

ianlewis commented 2 years ago

@mauriciogg @kevinGC has been looking at it and has done the work to get us closer to full Mac support so he's the one to ask.

l1n commented 1 month ago

Interested in this again, if it's still being worked on!

kevinGC commented 1 month ago

It's not currently, unfortunately. No reason it can't be done, it's just that nobody has had the time to do it.