I have been trying Kubernetes, I have setup a master and minions in AWS. The documentation on docker + Kubernetes seems to be lacking, or maybe I was looking for it in the wrong place.
Lets say I build my docker containers on a local box (not in AWS). I donot have a docker registry.
Is it possible for me to tell Kubernetes to use my local containers when spinning up pods? Or do my containers need to be put in a docker registry?
Kubernetes use local docker image is nothing but create Kubernetes image locally and deploy the same on Kubernetes cluster locally; the first step is to deploy our application on Kubernetes to build the docker image. Next, we need to use minikube to run the Kubernetes in our local environment.
Kubernetes can run Docker containers and 'docker build' images, but it is important to note that Kubernetes has depreciated support for Docker as a container runtime.
If the image was built on a host where Kubernetes is running, then yes, Kubernetes may use it on some conditions:
IfNotPresent
(see Updating Images)Using a private registry would make your life easier though, on top of that it's very easy to set up a local Docker registry with Kubernetes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With