<p>I am trying to use Docker + Kubernetes for my application management.</p>

<p>I have installed kubectl, kubeadm, kubelet (got the steps from google docs) for Kubernetes cluster.</p>

<p>Now cluster is having 2 node(1 Master, 1 Child)</p>

<p>I have a customize Dockerfile , how can it use it as a Kubernetes pods ?</p>

<p>If this is not possible,
How to transmit the docker build to the Kubernetes child from master.</p>

<p>You could use a private Docker registriy outside or inside the cluster or work with local (pre-pulled) images.</p>

<ol>
<li><p>Outside the cluster you might want to look at these:</p>

<ul>
<li><a href="https://docs.docker.com/registry/" rel="noreferrer">Docker registry image</a></li>
<li><a href="https://www.jfrog.com/confluence/display/RTF/Docker+Repositories" rel="noreferrer">Jfrog Artifactory registry</a></li>
<li><a href="https://www.sonatype.com/nexus-repository-oss" rel="noreferrer">Sonatype Nexus</a></li>
<li><a href="https://hub.docker.com/" rel="noreferrer">Dockerhub private registry</a></li>
<li><a href="https://cloud.google.com/container-registry/" rel="noreferrer">Google private registry</a></li>
<li><a href="https://aws.amazon.com/ecr/" rel="noreferrer">Amazon ECR</a></li>
<li><a href="https://quay.io/" rel="noreferrer">Quai.io registry</a></li>
<li><a href="https://azure.microsoft.com/en-us/services/container-registry/" rel="noreferrer">Azure registry</a></li>
</ul></li>
<li><p>Inside the cluster you might want to look at the <a href="https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/registry" rel="noreferrer">Private Docker Registry in Kubernetes</a></p></li>
<li><p>If you're not interested to use a registry, you could also build the image on every Kubernetes node so that Docker doesn't have to pull it. To avoid that Kubernetes tried to pull anyways you would then have to set the <code>imagePullPolicy</code> of your containers to <code>Never</code>. That's described within the <a href="https://kubernetes.io/docs/user-guide/images/#pre-pulling-images" rel="noreferrer">official documentation</a>.</p></li>
</ol>
