I'm setting up Docker Engine on my local machine using Minikube. There are two tutorials I've considered, with slight differences between them. I'd love to understand the difference. Can anyone clarify whether these commands would have any different outcome?
From this blog post, which I found first:
# Install hyperkit and minikube
brew install hyperkit
brew install minikube
# Install Docker CLI
brew install docker
brew install docker-compose
# Start minikube
minikube start
# Tell Docker CLI to talk to minikube's VM
eval $(minikube docker-env)
# Save IP to a hostname
echo "`minikube ip` docker.local" | sudo tee -a /etc/hosts > /dev/null
# Test
docker run hello-world
Or from this tutorial (on the minikube website, which I'm inclined to believe is authoritative):
# Install the Docker CLI
brew install docker
# Start minikube with a VM driver and `docker` container runtime if not already running.
minikube start --container-runtime=docker --vm=true
# Use the `minikube docker-env` command to point your terminal's Docker CLI to the Docker instance inside minikube.
eval $(minikube -p <profile> docker-env)
Context: I'm on MacOS, Ventura 13.0 (22A380)
Note: This is a more general question related to the specific one here.