<story><title>macOS in QEMU in Docker</title><url>https://github.com/sickcodes/Docker-OSX</url></story><parent_chain></parent_chain><comment><author>etaioinshrdlu</author><text>So this is pretty misleading. It&amp;#x27;s really a full system emulator (qemu) running inside Docker, using root privileges on the container that make the isolation very weak (--privileged).&lt;p&gt;It also uses hardware assisted virtualization (KVM) which is not going to be available most of the time Docker is.&lt;p&gt;You can think of the Docker platform itself as subset of the Linux platform. With many common features removed by default... SYS_PTRACE, cgroups come to mind as not allowed within the container. (This &amp;quot;Docker as a subset of Linux&amp;quot; is also what you end up getting from most &amp;quot;Docker as a service&amp;quot; platforms offered by clouds, including kubernetes. I&amp;#x27;m referring to AWS Fargate, Google Cloud Run, GKE, AKS, here.)&lt;p&gt;So don&amp;#x27;t think of this as macOS in docker wherever docker runs.&lt;p&gt;What would be a lot more analogous to macOS in docker would be running Darling in docker: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;www.darlinghq.org&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;www.darlinghq.org&amp;#x2F;&lt;/a&gt; ... if that could be made to work for the entire system (highly unlikely)&lt;p&gt;Darling is more like Wine in that it runs native executables for one platform as native processes on another platform using a compatibility layer. Wine, by the way, definitely works quite well inside Docker.&lt;p&gt;Also, one final thought. I wonder if you could get macOS to boot in QEMU without hardware assisted virtualization. Then you could probably run this in a fully isolated container again. The performance would likely be abysmal though!</text></comment>
<story><title>macOS in QEMU in Docker</title><url>https://github.com/sickcodes/Docker-OSX</url></story><parent_chain></parent_chain><comment><author>cercatrova</author><text>I just want a good CI&amp;#x2F;CD system for macOS to build iOS apps without needing to buy a farm of Mac Minis, or even buy a Mac, is that too much to ask?</text></comment>