4 ms·
Is there an easy way to build an image locally and start it in minikube without an external registry or running a local one?
by pmezard 9y ago
Is there an easy way to build an image locally and start it in minikube without an external registry or running a local one?
- nickjackson 9y agoyes. `eval $(minikube docker-env)` will setup the docker cli to use minikube's docker demon. https://kubernetes.io/docs/getting-started-guides/minikube/#reusing-the-docker-daemon https://kubernetes.io/docs/getting-started-guides/minikube/#...
- jburwell 9y agoWe use minikube's support for Docker insecure registries to build and deploy images locally. It works perfectly for us.
- user15128 9y agoi guess the easiest way would be to run a registry in minikube. another approach would be to run docker inside a k8s-pod (docker-in-docker), that way you can run images without having to push them to a registry but still test it in k8s-environment (at least to some extent).