Reputation: 10604
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 ;)
Upvotes: 6
Views: 3457
Reputation: 18200
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.
Upvotes: 4