This is a proof of concept application to run a LinuxKit VM in a SwiftUI application and launch docker containers in it. It's using the same approach the Docker Desktop for Mac uses to run LinuxKit VMs. The idea is to have Docker and container capabilities in a native SwiftUI app without the dependency on Docker Desktop.
Kindly note that his is extremely early, experimental and being worked on.
The LinuxKit image is not included in this repository. You can find an example at my snippetd project which allows spawning containers and executing arbitrary code within them. The linuxkit-initrd.img
and the linuxkit-kernel
(uncompressed!) need to be in the MacLinuxKit/Resources
folder.