Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Last active January 20, 2023 19:48
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save vfarcic/d2f36b05bf959e5fc91497ea3f0dceb3 to your computer and use it in GitHub Desktop.
Save vfarcic/d2f36b05bf959e5fc91497ea3f0dceb3 to your computer and use it in GitHub Desktop.
# Source: https://gist.github.com/d2f36b05bf959e5fc91497ea3f0dceb3
#######################################################
# Free Docker Desktop Alternative For Mac And Windows #
# https://youtu.be/LGNEG-t96eE #
#######################################################
# Referenced videos:
# - How to run local multi-node Kubernetes clusters using kind: https://youtu.be/C0v5gJSWuSo
# - K3d - How to run Kubernetes cluster locally using Rancher k3s: https://youtu.be/mCesuGk-Fks
#########
# Setup #
#########
# Install Docker CLI (https://download.docker.com/ or `brew install docker`)
# Install Minikube (https://minikube.sigs.k8s.io/docs/start/)
# Install HyperKit (https://minikube.sigs.k8s.io/docs/drivers/hyperkit/)
git clone https://github.com/vfarcic/docker-desktop-minikube
cd docker-desktop-minikube
############################
# Replacing Docker Desktop #
############################
docker container ls
minikube start --driver hyperkit
minikube docker-env
eval $(minikube docker-env)
docker container ls
docker image build --tag something .
docker container run --rm -t \
alpine echo "Is it working?"
docker compose up --detach
docker compose down
###########
# Destroy #
###########
minikube delete
@spuder
Copy link

spuder commented Dec 30, 2021

Doesn't work for M1 mac

minikube start --driver hyperkit
😄  minikube v1.24.0 on Darwin 11.6.1 (arm64)
✨  Using the hyperkit driver based on user configuration

❌  Exiting due to DRV_UNSUPPORTED_OS: The driver 'hyperkit' is not supported on darwin/arm64

@vfarcic
Copy link
Author

vfarcic commented Dec 30, 2021

Unfortunately, Minikube does not work with Apple silicon chips. I was using Docker Desktop (with k8s enabled) on my M1 laptop until recently. Now I switched to Rancher Desktop. It is my favorite local k8s distribution and now it supports M1 as well.

@mshariqa
Copy link

"docker compose up" doesn't work for me. I am using Intel Mac.
docker: 'compose' is not a docker command. See 'docker --help'

Do I need to install docker compose separately?

@vfarcic
Copy link
Author

vfarcic commented Apr 11, 2022

Can you please let me know which version of Docker CLI you're running (docker version)?

@Gliganu
Copy link

Gliganu commented May 14, 2022

in the latest version, minikube apparently support M1. using 'qemu' driver kubernetes/minikube#11885

@vfarcic
Copy link
Author

vfarcic commented May 15, 2022

Finally

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