tutorial

Docker-OSX Installtion for Security Testing

Step-by-step install Docker-OSX on Linux for MacOS security research.

#ios

If you don’t have a MacOS device, you can use Docker-OSX (Linux only) for security research.

The terms about its legality referenced by sickcodes are outdated always check Apple’s official bug bounty program page for current rules. link

For best performance, use Linux natively instead of a virtual machine, as VMs usually can’t handle MacOS graphics needs with Docker.

To run Docker-OSX you will need:

  1. A linux distro.
  2. Atleast 40 GB of empty space (20 GB for container, 20 GB for original image).
  3. Docker.

Installing

Download and Install Docker by following the guide specific to your operating system from: https://docs.docker.com/engine/install/

Make sure the docker daemon is running:

# SystemD
sudo/doas systemctl start docker
######################################
# OpenRC
sudo/doas rc-service docker start
######################################
# Runit
sudo/doas sv start docker

And then pull and start the Docker-OSX:

sudo/doas docker pull sickcodes/docker-osx:auto

sudo/doas docker run -it --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" -e GENERATE_UNIQUE=true sickcodes/docker-osx:auto

Once started, login with username "user" and password "alpine"

From this point forward, we can’t provide instructions for this setup because Hackintosh may have limited features and could violate Apple’s terms. You’ll need to proceed on your own from here.