Page 1 of 1

Crash Tuto for Docker with Hackintosh High Sierra and possibly others OS X

Posted: Sat Dec 30, 2017 9:58 pm
by micheldiz
First, install VirtualBox and make sure you are capable of creating any Linux VM. Just create any Debian or Ubuntu just for a test, use for a sec and go to the second step.

OBS. You need to enable in Bios the virtualization options. I enabled all that my motherboard said to be part of a virtualization context. If you enable everything and your Hackintosh machine boots normally. We are in profit.

Step two: Knowing you can create a machine. Download and install the "Docker Toolbox for mac" follow the documentation link https://docs.docker.com/toolbox/toolbox_install_mac/
or https://github.com/docker/toolbox/releases (if you need newer versions - update from the user @sbres)

and link to download the package https://download.docker.com/mac/stable/ ... oolbox.pkg

PS: See the comment down below from "by: sbres - Thu Feb 14, 2019 7:57 am"

Step three: When you open Docker Quickstart Terminal (it can open at any time just to be sure the error will happen) the terminal will inform you that you do not have the ability to create a machine because it can not identify that you have the ability to create a functional virtual machine.

This check was placed in Docker Tools because of a compatibility problem. But you can still use Docker Tools, just keep in mind that problems can happen.

Step four: Open any terminal (command + space bar and type "terminal" and press enter) - You will need to create a virtual machine via terminal using this command below.
Code: Select all
 docker-machine create -d virtualbox --virtualbox-no-vtx-check default
or - if you wanna a specific Docker version
Code: Select all
 docker-machine create -d virtualbox --virtualbox-no-vtx-check --virtualbox-boot2docker-url https://github.com/boot2docker/boot2docker/releases/download/v17.09.0-ce/boot2docker.iso default

IMPORTANT UPDATE 2019:

If you upgrade to the latest version of Docker-Machine. A flag has changed. So I did a new example of it. And add the docker v18.09.3 ISO.
Code: Select all
 docker-machine create -d "virtualbox" --virtualbox-no-vtx-check --engine-install-url https://github.com/boot2docker/boot2docker/releases/download/v19.03.5/boot2docker.iso default 
Just copy and paste it to your terminal. A new machine with the name "default" will appear in your VirtualBox. It is this name that the "Docker Quickstart Terminal" script is programmed to look for.

Step 5: After the command finishes creating the machine and you notice that it is in the Virtualbox list. Now open the Docker Quickstart Terminal. And it will Turn on this machine and connect to Docker via SSH.

PS. (ATTENTION) You can use Kitematic, but is in beta. It's working pretty okay in my machine. But before use Kitematic do the steps exactly as I showed.

Extra: You can create other machines in parallel using Docker-machine. Use the same command we used to create the default, but use any name you want. This would be useful if you want to play with Swarm. To see more details of the created machine just give the command below.
Code: Select all
 docker-machine env default (replace "default" with the name of your machine)
Enjoy - I hope it was helpful. Cheers.

PS. I've fixed the text, dunno what was in my mind. There's no Hyper V for mac, as such thing is Microsoft proprietary. And "Hypervisor" is any type of VM manager.

Re: Crash Tuto for Docker with Hackintosh High Sierra and possibly others OS X

Posted: Thu Apr 19, 2018 10:51 am
by sbres
Your post just saved my life.
I really needed to have docker working and this totally worked.

Thank you a lot.

Re: Crash Tuto for Docker with Hackintosh High Sierra and possibly others OS X

Posted: Sun Jan 20, 2019 4:19 pm
by fk2106
Thank You!

This method definitely makes docker usable with AMD. Hopefully in the future native hypervisor will come to amd os x.

Re: Crash Tuto for Docker with Hackintosh High Sierra and possibly others OS X

Posted: Thu Feb 14, 2019 10:57 am
by sbres
For future people trying the tutorial, Please download Docker toolbox from GitHub.

Docker is not updating the versions on the website and you will end up with old versions.

https://github.com/docker/toolbox/releases

Re: Crash Tuto for Docker with Hackintosh High Sierra and possibly others OS X

Posted: Sat Feb 08, 2020 6:19 pm
by Alex Nask
Worked for me:
Code: Select all
brew install docker docker-machine
brew cask install virtualbox
-> need password
-> possibly need to address System Preference setting
Code: Select all
docker-machine create -d virtualbox --virtualbox-no-vtx-check default
docker-machine env default
eval "$(docker-machine env default)"

Re: Crash Tuto for Docker with Hackintosh High Sierra and possibly others OS X

Posted: Mon Apr 27, 2020 4:50 am
by louden
Alex Nask wrote:Worked for me:
Code: Select all
brew install docker docker-machine
brew cask install virtualbox
-> need password
-> possibly need to address System Preference setting
Code: Select all
docker-machine create -d virtualbox --virtualbox-no-vtx-check default
docker-machine env default
eval "$(docker-machine env default)"
How did you install virtualbox on a AMD hackintosh? It fails for me, via their package, or homebrew cask