Skip to content

Instantly share code, notes, and snippets.

@lvidarte
Created March 27, 2019 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lvidarte/1aeb2b58d874d19eed5e6fea6f0e7ed2 to your computer and use it in GitHub Desktop.
Save lvidarte/1aeb2b58d874d19eed5e6fea6f0e7ed2 to your computer and use it in GitHub Desktop.
Build image inside minikube and then use it from there
# Start minikube
minikube start
# Set docker env
eval $(minikube docker-env)
# Build image
docker build -t foo:0.0.1 .
# Run in minikube
kubectl run hello-foo --image=foo:0.0.1 --image-pull-policy=Never
# Check that it's running
kubectl get pods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment