Docker image running a Mac OS X installation

泪湿孤枕 提交于 2019-12-02 17:13:10

If you are trying to run Mac OS as the base system in a Docker container, unfortunately there is no way to do it.

Docker container need to use the host machine's Linux Kernel, since Mac OS family is Unix-based operating system, currently Docker cannot simulate a Mac OS in Docker container. Here is a link to explain how container works.

This would be nice, particularly for CI servers:

  1. You can run OSX on QEMU (akin to VirtualBox, emulates the kernel).
  2. You canrun QEMU from a Docker container. I have done this for ARM dev and it works well.
  3. So yes, you can run OSX from Docker, but you have to emulate, use a virtual machine in the container.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!