运行Mac OS X安装的Docker映像 [英] Docker image running a Mac OS X installation
问题描述
我正在使用Mac的Docker,并希望通过我的开发环境创建一个运行Mac El Capitan的Docker映像.
I am using Docker for Mac and wish to create Docker image running a Mac El Capitan with my development env.
我没有找到任何资源.我所看到的只是Linux安装.
I am not finding any resources on this. All I see is Linux installations.
在Linux上,我看到的事情很简单:
On Linux I saw things as simple as:
FROM sciensa2/docker-java8
RUN apt-get update
RUN apt-get install -y wget unzip libgtk2.0-0:amd64 libxtst6
但是OS X要安装和运行其他软件的FROM值是多少?
But what would be the FROM value for OS X to install and run other software?
推荐答案
如果您尝试将Mac OS作为基本系统运行在Docker容器中,则无法执行此操作.
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容器需要使用主机的Linux内核,因为Mac OS系列是基于Unix的操作系统,当前Docker无法在Docker容器中模拟Mac OS.这是说明容器如何工作的链接.
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.
这篇关于运行Mac OS X安装的Docker映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!