Skip to content

Instantly share code, notes, and snippets.

Last active August 31, 2023 02:26
Star You must be signed in to star a gist
What would you like to do?
Docker and Docker Compose on AMD OSX Hackintosh via Docker Machine

Introduction will complain about incompatible processor, so we will use Docker Machine.


Download Docker for Mac ( It contains some binaries that are necessary.

brew install virtualbox docker-machine

# Normally, those links are created automatically by running,
# but it quits on us too early, so we need to do this manually
ln -s "/Applications/" /usr/local/bin/docker-compose
ln -s "/Applications/" /usr/local/bin/docker-credential-desktop
ln -s "/Applications/" /usr/local/bin/docker-credential-osxkeychain

You can also use brew to install docker and doccker-compose and it should work without linking above.


docker-machine create
eval $(docker-machine env)
docker run hello-world
docker-compose up
Copy link

evenlee commented Apr 9, 2023

@evenlee sorry, I misunderstood your question. I tried with windows VM but got same error as your.

Edit: I can use Genymotion (which is a VM for Android) normally.

Thanks, it seems i have to stay on Monterey for now, maybe I will upgrade my build to 13900 when I got time to rebuild :).

Copy link

brorbw commented Apr 17, 2023

Let me add that you can now use

brew tap homebrew/cask-versions
brew install --cask virtualbox6

To install the correct version of Virtualbox

Copy link

phtmgt commented Jul 19, 2023

Thanks for the guide. It works here (ryzentosh Ventura). However, there's an issue with VirtualBox 6.1.40 - it uses double the amount of RAM (e.g., if you allocate 4.0 GB, you can check Activity Monitor where you'll see ~8.0 GB used). The issue is documented here -

Not a deal breaker, but might be problematic for some. An older version - 6.1.2 r135662 - does not have the double memory issue, I am not sure, if it will work in this case. If someone tries it, please share feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment