I started Kubernetes master and minion on local machine using Vagrant. I can create a json file for my Kubernetes pod where I can start several public containers.
However, one Docker container is local one, ontop on java:8-jdk
, configured with DockerFile.
How can I reference this local Docker container in the kubernetes json pod so Kubernetes can run it?
In other words, does Kubernetes support docker build ;)
To deploy the Docker image on the Kubernetes cluster, we are using kubectl. We can also edit the existing deployment by using the kubectl edit command. For editing the docker image, we simply need to update the attribute for containers to save the deployment.
This allows users to pull, build or run Docker images and to use their existing container-based scripts as steps in the workflow. Each step in the workflow is then converted to a Kubernetes Pod, where a Kubernetes Pod can have one or more containers.
After you build the docker image, you can "side-load" it into your locally available images by running docker load -i /path/to/image.tar
. Once you've done this, Kubernetes will be able to load the image without reaching out to an external hub.
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