There are different container engine. But we recommend to use Docker.
Go to Docker official website to download: Get Docker
Find the Docker.dmg
on the laptop. Install it as a common Mac software.
Run the hello-world
official image to verify the installation.
docker run hello-world
This command downloads a test image and runs it in a container. When the container runs, it prints a message and exits.
Click Docker Desktop app to start.
To use kubernetes on the laptop, we can install minikube, a local kubernetes.
Go to minikube official website to download: Minikube
NOTE: this is the recommended route for users in China. The minikube image repository for the up-to-date version is not correct, which leads to minikube start failure.
- Install older version from the official github repository: Releases · kubernetes/minikube
- Install older version using mirror in China: minikube (The latest version that works is 1.25.2)
Command to install minikube older version (1.25.2)
curl -o minikube -L https://registry.npmmirror.com/-/binary/minikube/v1.25.2/minikube-linux-amd64
Install you downloaded minikube to /usr/local/bin
:
sudo install minikube /usr/local/bin/minikube
minikube version