Docker image with mac osx installation

I am using docker for mac and want to create a docker image running mac el capitan with my env development.

I do not find resources on this. all i see are linux installations. ''

any advice on how to do this

In linux, I saw simple things like

FROM sciensa2/docker-java8 RUN apt-get update RUN apt-get install -y wget unzip libgtk2.0-0:amd64 libxtst6 

but what is the FROM value for osx for installing and running other software.

+5
source share
2 answers

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

The Docker container must use the main Linux Kernel machine, since the Mac OS family is a Unix-based operating system, Docker cannot currently mimic Mac OS in a Docker container. Here is a link to explain how the container works .

+6
source

This would be nice, especially for CI servers:

  • You can run OSX on QEMU (akin to VirtualBox, emulates the kernel).
  • You can use QEMU from the Docker container . I have done it for ARM dev and it works well.
  • So, you can run OSX from Docker, but you have to emulate, use the virtual machine in the container.
0
source

Source: https://habr.com/ru/post/1260398/


All Articles