Deploying local Docker image (DockerFIle) as local Kubernetes pod

Deploying local Docker image (DockerFIle) as local Kubernetes pod

I started Kubernetes master and minion on local machine using Vagrant. I can create a json file for my kubernete 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 kubernets can run it?
In other words, does Kubernetes support docker build 😉

Solutions/Answers:

Solution 1:

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.

References

Related:  What's the difference between docker compose and kubernetes?