Last active
January 20, 2023 19:48
-
-
Save vfarcic/d2f36b05bf959e5fc91497ea3f0dceb3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
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.
"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?
Can you please let me know which version of Docker CLI you're running (docker version
)?
in the latest version, minikube apparently support M1. using 'qemu' driver kubernetes/minikube#11885
Finally
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Doesn't work for M1 mac