Skip to content

Instantly share code, notes, and snippets.

@apsega
Last active October 6, 2018 19:14
Show Gist options
  • Save apsega/ef4c551cd4e2458d6908442731ebfdb5 to your computer and use it in GitHub Desktop.
Save apsega/ef4c551cd4e2458d6908442731ebfdb5 to your computer and use it in GitHub Desktop.
Run Minikube on MacOS and local Docker images

Run Minikube on MacOS and local Docker images

Install required packages

VirtualBox:

brew cask install virtualbox

Minikube:

brew cask install minikube

Run Minikube

minikube start --vm-driver=virtualbox --kubernetes-version v1.12.1

Run local Docker images on Minikube

  1. Reuse Docker daemon.
eval $(minikube docker-env)
  1. Build Docker image locally.
docker build -t my-image .

Set the imagePullPolicy to Never.

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