<p>Had setup K8s cluster using Kops</p>

<pre><code>export KOPS_STATE_STORE=s3://clusters.aind.devops
export ZONES=ap-south-1a
export VPC=vpc-xxxxx
export node_count=2
export node_size=m4.large
export master_size=t2.medium
export api_loadbalancer_type=public
export topology=private
export dns=private
export dns_zone=Z25L42E21ILH89
export CLIENT=test
</code></pre>

<p>It created 2 node and one master 
And i tried to setup Jenkins docker build slave to build the docker images in the pod</p>

<p>My build is failing with</p>

<pre><code>Sending build context to Docker daemon 15.36 kB
Step 1/3 : FROM ubuntu
 ---&gt; cd6d8154f1e1
Step 2/3 : RUN apt-get update -y
 ---&gt; Using cache
 ---&gt; 8007c6693623
Step 3/3 : RUN apt-get install vim -y
 ---&gt; Running in cbbafcb6a37b
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package vim
The command '/bin/sh -c apt-get install vim -y' returned a non-zero code: 100
</code></pre>

<p>When I logged into the node and ran the same build its failing there, seems docker daemon is not getting the DNS resoultion</p>

<p>Please help</p>

renuraj
<p>Try specifying Docker build option <code>--network host</code>.  I have seen where Docker containers cannot reach the network even if the host can.</p>
