Skip to content

Instantly share code, notes, and snippets.

@slykar
Last active October 30, 2024 19:14
Show Gist options
  • Save slykar/e92732be9bf81a71e08068245656d70e to your computer and use it in GitHub Desktop.
Save slykar/e92732be9bf81a71e08068245656d70e to your computer and use it in GitHub Desktop.
Docker and Docker Compose on AMD OSX Hackintosh via Docker Machine

Introduction

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

Instalation

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

brew install virtualbox docker-machine

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

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

Running

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

mawanx commented Jan 12, 2024

@evenlee yes, I can

Thanks for confirming, it's wired I cannot run any vm even minikube vm by start button in VM window, but I can use 'minikube start' to start the minikube vm. my value to disable sip is 6F020000(I also tried many values, same result, but this one seems perfect), and i am just upgraded to 13.3 from 12.6. image

Hi @AlphaNecron, what I'm trying to say is is that I also face this problem, Installed virtualbox 6.1.46a if I'm not mistaken and got error like that...

@AlphaNecron
Copy link

Haven't tested with Windows, minikube runs flawlessly anyways.

@mawanx
Copy link

mawanx commented Jan 12, 2024

Haven't tested with Windows, minikube runs flawlessly anyways.

What macOS version you're on right now?

@AlphaNecron
Copy link

Using Sonoma for the time being, should work on other versions.

@mawanx
Copy link

mawanx commented Jan 12, 2024

Okayy, I'll try again. Thanks for your info

@johnalbert-dot-py
Copy link

Is there any proper alternative for using docker on ryzentosh? (It's been months since the last time I use hacktintosh lol)

@AlphaNecron
Copy link

Is there any proper alternative for using docker on ryzentosh? (It's been months since the last time I use hacktintosh lol)

Wdym by "alternative", another app similar to Docker that works properly on Ryzentosh or something?

@dheerajv4855
Copy link

dheerajv4855 commented Feb 17, 2024 via email

@AlphaNecron
Copy link

do not waste time in making it work in ryzentosh, no alternative will work either use linux for docker and mac for other work with dual boot or switch to intel processor at all

On Sat, Feb 17, 2024 at 2:58 PM Nguyen Thanh Quang @.> wrote: @.* commented on this gist. ------------------------------ Is there any proper alternative for using docker on ryzentosh? (It's been months since the last time I use hacktintosh lol) Wdym by "alternative", another app similar to Docker that works properly on Ryzentosh or something? — Reply to this email directly, view it on GitHub https://gist.github.com/slykar/e92732be9bf81a71e08068245656d70e#gistcomment-4908770 or unsubscribe https://github.com/notifications/unsubscribe-auth/ALSHMCYAZG6SMZNYSVBCBPLYUBZ4JBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVEYTAMBQGY4TIMZQU52HE2LHM5SXFJTDOJSWC5DF . You are receiving this email because you commented on the thread. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

Or use another OS, or even host Docker on another machine 👀 Much better.

@AlphaNecron
Copy link

Intel hackintoshes for laptops are retiring, there's absolutely no point in getting 2020 rigs just to install Hackintosh lol. Recent new-gen desktop ones also pose performance issues due to asshole CPU architecture aka "bigLITTLE" as well as lack of proper scheduling driver though. Apple is gonna put an end to x86 MacOS so better forget about Hackintoshing and get a real Mac instead of wasting time on this shit lol.

@evenlee
Copy link

evenlee commented Feb 19, 2024

@johnalbert-dot-py per my experiences, you can stay on 12.0(Monterey) to use virtual box and Minikube, both docker and vm still work on it, or switch to other OS as others suggested, no need to consume any time on a solution as Hacktiontosh is retiring even in intel build. in my M1 Max macbook, I can say the experience is better now as you can use orbstack to run both arm and x64 docker images.

@AlphaNecron
Copy link

@johnalbert-dot-py per my experiences, you can stay on 12.0(Monterey) to use virtual box and Minikube, both docker and vm still work on it, or switch to other OS as others suggested, no need to consume any time on a solution as Hacktiontosh is retiring even in intel build. in my M1 Max macbook, I can say the experience is better now as you can use orbstack to run both arm and x64 docker images.

In fact, you can still use Minikube on Ventura and Sonoma, however, the performance is a bit uhhh as the only provider for Minikube on Ryzentosh is VirtualBox cuz AppleHV is not supported at all lol.

@evenlee
Copy link

evenlee commented Feb 23, 2024

@AlphaNecron can you run windows vm without error on Sonama/Ventura with virtual box 6.x?

@williamcorney
Copy link

@AlphaNecron can you run windows vm without error on Sonama/Ventura with virtual box 6.x?

I am also interested in answer to this . I was not aware there was a way to successfully run virtual box vms on an amd hackintosh due to osx not supporting AMD/SVM. Of course intel works fine as it used vt-d and osx is programmed to work on intel.

I think i might have seen / got working a non svm method of running a virtual machine but performance was poor. Is it this what we are taking about ? Sorry if I don’t use precisely the right technical terms as a these matters are at the limit of my understanding.

@sergeycherepanov
Copy link

I guess Proxmox as host and Macos as guest with a gpu passthrough, currently is the better way to setup ryzentosh. For the docker in this case use separate vm with any linux distro and just mount folder over nfs.

@kroegen
Copy link

kroegen commented Apr 23, 2024

@sergeycherepanov Do I understand you correctly?

  • I can use Ubuntu as a host OS.
  • Use Proxmox to run MacOS.
  • Use Docker in Ubuntu.
  • Share Docker between Ubuntu host OS and MacOS in VM?

@sergeycherepanov
Copy link

sergeycherepanov commented Apr 28, 2024

@kroegen yes, but only Debian supported by Proxmox VE, or you need to install Proxmox VE directly from the iso. Also, I can recommend check the guides by Nick on him blog https://www.nicksherlock.com/category/proxmox/

@evenlee
Copy link

evenlee commented Jul 17, 2024

hey guys, with OpenCore-Legacy-Patche, VirtualBox 6.1.x can take another breath on sonoma(14.5 tested), just work as usual.
I just upgraded from Monterey without any issue.
image

@OldDream
Copy link

OldDream commented Jul 25, 2024

hey guys, with OpenCore-Legacy-Patche, VirtualBox 6.1.x can take another breath on sonoma(14.5 tested), just work as usual. I just upgraded from Monterey without any issue. image

wow!So docker can work?

@Leomin07
Copy link

@brorbw
Addressing localhost from a VirtualBox virtual machine

@brorbw
Copy link

brorbw commented Jul 25, 2024

@Leomin07 I'm going to need a bit more context for that comment.

@Leomin07
Copy link

@brorbw how to reach application running in minikube at 'localhost' on docker-compose? thank bro.

@evenlee
Copy link

evenlee commented Jul 26, 2024

hey guys, with OpenCore-Legacy-Patche, VirtualBox 6.1.x can take another breath on sonoma(14.5 tested), just work as usual. I just upgraded from Monterey without any issue. image

wow!So docker can work?

I didn't use docker machine for a while as it is a bit aged, minkube works fine.

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