Deploying local Docker image (DockerFIle) as local Kubernetes pod

5/22/2015

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 ;)

-- igr
docker
kubernetes

1 Answer

5/22/2015

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.

-- Robert Bailey
Source: StackOverflow