This is an ultimate matryoshka Mac system, which I installed into a Linux subsystem running on Windows inside a Docker container. It's a combination of three major operating systems all at once. We can use this system to try out some Mac-specific software, develop cross-platform software, test compatibility, and more.
In this page, let's take a look at how to set up this interesting system. For this project, I'm using Docker OSX, whichc cows you to quickly start a MacOS environment using Docker. However, this project has fairly high hardware requirements, and a Linux mini-computer's performance may not be sufficient. So this time, I'm going to run Docker on my Windows computer.
First, initial setup for Docker-OSX to run on Windows
Go to C:/Users/<Your_Name>/.wslconfig and add nestedVirtualization=true to the end of the file (If the file doesn't exist, create it). For more information about the .wslconfig file check this link. Verify that you have selected "Show Hidden Files" and "Show File Extensions" in File Explorer options. The result should be like this:
This step is to allow nesting of virtual machines.
⚠️If you are running your WSL, don't forget to run wsl --shutdown to activate the above config.