<p>We are facing error while deploying an application through dockerfile. While installing the Kubernetes (Kubectl, Kubeadm) through dockerfile, the client version is installed but the error while installing the server version i.e., kubeadm installation. The resultant screenshot is 
attached. It would be great if any one helps me to solve the issue. 
Kindly provide the document to install kubernetes via dockerfile.</p>

<p><a href="https://i.stack.imgur.com/CqDpp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CqDpp.png" alt="enter image description here"></a></p>

Abhishek
<p>My guess you want to create kubernetes cluster in docker environment, this is possible but your approach might not as good as you think.</p>

<p>There is <a href="https://github.com/kubernetes-sigs/kind" rel="nofollow noreferrer">KinD</a> for that. It is actually what you want.</p>

<p>However if you still want to use your implementation. You should use <a href="https://github.com/jpetazzo/dind" rel="nofollow noreferrer">DinD</a> as base image, bind volume to local docker then use kubeadm in dockerfile as "CMD" not as "RUN".</p>
