Creating a mac docker container

so all over i see is docker for mac related docs etc.

my current non docker env is based on mac for ios app development. I am planning to create a docker image for it so that dev teams can avoid lengthy setup we need.

the very first step where i am stuck is how to have a clean osx image based on el capitan where i will start installing required software

You may be misunderstanding how Docker works. You can run a Docker-based environment on your Mac, but within a container, you can only run Linux applications. You can’t run macOS inside of a container. For that scenario, you should be looking at VM technology instead (VirtualBox, VMware, etc.)