Reputation: 9289
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 Linux installations.
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
But what would be the FROM value for OS X to install and run other software?
Upvotes: 46
Views: 90146
Reputation: 523
The future is now!
Run Mac OS X in Docker with near-native performance. https://github.com/sickcodes/Docker-OSX
Upvotes: 11
Reputation: 4946
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.
Upvotes: 20
Reputation: 1271
This would be nice, particularly for CI servers:
Upvotes: 30
Reputation: 2842
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.
Upvotes: 39