Created
March 27, 2019 20:03
-
-
Save lvidarte/1aeb2b58d874d19eed5e6fea6f0e7ed2 to your computer and use it in GitHub Desktop.
Build image inside minikube and then use it from there
This file contains hidden or 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
# 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