{"id":4335,"date":"2026-03-28T20:44:23","date_gmt":"2026-03-28T17:44:23","guid":{"rendered":"https:\/\/demensdeum.com\/blog\/2026\/03\/28\/macos-docker\/"},"modified":"2026-03-28T21:14:31","modified_gmt":"2026-03-28T18:14:31","slug":"macos-docker","status":"publish","type":"post","link":"https:\/\/demensdeum.com\/blog\/2026\/03\/28\/macos-docker\/","title":{"rendered":"Running macOS in Docker"},"content":{"rendered":"<p>It is possible to run macOS in Docker, despite the objections of people who say that this is impossible, and supposedly macOS has some kind of protection systems that can resist this.<\/p>\n<p>Some of the classic ways to run macOS on PC machines have historically been:<br \/>\n*Hackintosh<br \/>\n* Virtualization, for example using VMWare<\/p>\n<p>Hackintosh assumes the presence of hardware similar or very close to the original Mac. Virtualization imposes certain requirements on hardware, but generally not as strict as in the case of Hackintosh. However, in the case of virtualization, there are performance problems, since macOS is not optimized for working in a virtual environment.<\/p>\n<p>Recently, it has become possible to run macOS in Docker. This is made possible by the Docker-OSX project, which provides ready-made macOS images to run on Docker. It is worth noting that Docker-OSX is not an official Apple project and is not supported by it. However, it allows you to run macOS on Docker and use it to develop and test applications.<\/p>\n<p>One of the first projects to run macOS in Docker:<br \/>\n<a href=\"https:\/\/github.com\/sickcodes\/Docker-OSX\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/sickcodes\/Docker-OSX<\/a><\/p>\n<p>However, I was never able to launch it fully; after loading into Recovery OS, my keyboard and mouse simply fell off, and I could not continue the installation. At the same time, in the first boot menu, the keyboard works. Perhaps the fact is that this project is no longer so actively supported, and there are some specific problems when running on Windows 11 + WSL2 + Ubuntu.<\/p>\n<p>One of the most active projects at the moment:<br \/>\n<a href=\"https:\/\/github.com\/dockur\/macos\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/dockur\/macos<\/a><\/p>\n<p>Allows you to run macOS in Docker, the interface works through the browser via VNC(?) forwarding. After startup, macOS is available at http:\/\/localhost:5900<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/demensdeum.com\/blog\/wp-content\/uploads\/2026\/03\/macos-docker.jpg\"\/><\/p>\n<p>I managed to run this project and install macOS Big Sur (minute 2020) on Windows 11 + WSL2 + Ubuntu, but only by changing the compose file, namely:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-unknown\" data-lang=\"unknown\"><code>environment:\n    VERSION: \"11\"\n    RAM_SIZE: \"8G\"\n    CPU_CORES: \"4\"\n<\/code><\/pre>\n<\/div>\n<p>VERSION: &#8220;11&#8221; is the version of macOS, in this case Big Sur<br \/>\nRAM_SIZE: &#8220;8G&#8221; is the amount of RAM allocated for macOS<br \/>\nCPU_CORES: &#8220;4&#8221; is the number of CPU cores allocated to macOS<\/p>\n<p>At the moment, running macOS tahoe (16) is also possible, but there are a number of problems that the project developers are trying to solve valiantly.<\/p>\n<p>This original way of launching macOS allows you to try it on your non-Mac hardware and, having suffered enough, go and buy yourself a Mac. However, it can be useful for testing software on older systems and general development.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is possible to run macOS in Docker, despite the objections of people who say that this is impossible, and supposedly macOS has some kind of protection systems that can resist this. Some of the classic ways to run macOS on PC machines have historically been: *Hackintosh * Virtualization, for example using VMWare Hackintosh assumes<a class=\"more-link\" href=\"https:\/\/demensdeum.com\/blog\/2026\/03\/28\/macos-docker\/\">Continue reading <span class=\"screen-reader-text\">&#8220;Running macOS in Docker&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[61,52],"tags":[],"class_list":["post-4335","post","type-post","status-publish","format-standard","hentry","category-techie","category-tutorials","entry"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"en","enabled_languages":["en","ru","zh","de","fr","ja","pt"],"languages":{"en":{"title":true,"content":true,"excerpt":false},"ru":{"title":true,"content":true,"excerpt":false},"zh":{"title":true,"content":true,"excerpt":false},"de":{"title":true,"content":true,"excerpt":false},"fr":{"title":true,"content":true,"excerpt":false},"ja":{"title":true,"content":true,"excerpt":false},"pt":{"title":true,"content":true,"excerpt":false}}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/demensdeum.com\/blog\/wp-json\/wp\/v2\/posts\/4335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demensdeum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/demensdeum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/wp-json\/wp\/v2\/comments?post=4335"}],"version-history":[{"count":4,"href":"https:\/\/demensdeum.com\/blog\/wp-json\/wp\/v2\/posts\/4335\/revisions"}],"predecessor-version":[{"id":4339,"href":"https:\/\/demensdeum.com\/blog\/wp-json\/wp\/v2\/posts\/4335\/revisions\/4339"}],"wp:attachment":[{"href":"https:\/\/demensdeum.com\/blog\/wp-json\/wp\/v2\/media?parent=4335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/wp-json\/wp\/v2\/categories?post=4335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/wp-json\/wp\/v2\/tags?post=4335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}