Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@avion540
Copy link

avion540 commented Apr 12, 2022

Since docker-machine is deprecated and archived, I recommend using minikube with virtualbox driver instead...

This worked perfectly for me. Thank you @jakoritarleite!!

@djonko
Copy link

djonko commented May 22, 2022

thanks a lot @jakoritarleite

@jorbs
Copy link

jorbs commented Aug 23, 2022

@jakoritarleite I am getting

docker-compose up
Error response from daemon: Client sent an HTTP request to an HTTPS server.

Any idea why?

@oordnave
Copy link

oordnave commented Aug 30, 2022

Dude, THANK YOU! This solves the problem here!

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