Docker image running a Mac OS X installation

前端 未结 3 825
野的像风
野的像风 2020-12-23 17:17

I am using Docker for Mac and wish to create Docker image running a Mac El Capitan with my development env.

I am not finding any resources on this. All I see is Lin

相关标签:
3条回答
  • 2020-12-23 17:31

    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.

    0 讨论(0)
  • 2020-12-23 17:32

    If hardware virtualization (KVM) is available on your host, you can now use Docker-OSX to run/emulate macOS on QEMU/KVM via OSX-KVM.

    0 讨论(0)
  • 2020-12-23 17:43

    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.
    0 讨论(0)
提交回复
热议问题