<p>I deployed kubernetes cluster with Weave CNI and so far I am able to deploy pods as needed. Now we are trying pull the docker images from articatory, but somehow its not working. getting the below error. surprisingly I am able to pull/push images from AWS ECR repo. Just baffling why we are failed to pull images to kubernetes cluster from artifactory which does not have any restrictions nor authentication. able to the images from this artifactory to regular docker VM's(which are running outside kubernetes cluster):</p>

<pre><code>Version:

Client Version: v1.17.2
Server Version: v1.17.2

Host OS:
Centos 7.7

CNI:
Weave
</code></pre>

<p>Error:</p>

<p>**Trying to pull repository artifactory.gns.rms-internal.com/rms-docker-pr-local/sdp/rms/model-platform/model-engine-kubernetes ... **</p>

<p><strong>Get <a href="https://artifactory.internal.com/v1/_ping" rel="nofollow noreferrer">https://artifactory.internal.com/v1/_ping</a>: dial tcp :443: connect: no route to host</strong></p>

<p>Appreciate any inputs or suggestions.</p>

<p>Thanks,
CS</p>

user1739504
<p>Problem is with a network, you have to remove all unused <a href="https://docs.docker.com/engine/reference/commandline/network_prune/" rel="nofollow noreferrer">networks</a>:</p>

<pre><code>$ docker network prune  
</code></pre>

<p>Then set the bit option on.</p>

<pre><code>docker -&gt; deamon.json -&gt; bip 
</code></pre>

<p>Just add <code>"bip": " xxx.yyy.zzz.vvv/ww"</code> line to <code>deamon.json</code> .
Restart docker:</p>

<pre><code>$ docker restart
</code></pre>

<p>Docker is creating sub-networks on the same range that your private registry .</p>

<p>Take a look here: <a href="https://github.com/docker/for-win/issues/522" rel="nofollow noreferrer">pulling-images-issue</a>, <a href="https://docs.docker.com/v17.09/engine/userguide/networking/default_network/custom-docker0/" rel="nofollow noreferrer">bridge-networks</a>, <a href="https://github.com/docker/compose/issues/4336" rel="nofollow noreferrer">docker-compose-subnet</a>,
<a href="https://github.com/docker/for-mac/issues/218" rel="nofollow noreferrer">docker-pulling-issue</a>.</p>

<p>Take a look also on: <a href="https://www.jfrog.com/confluence/display/JFROG/Getting+Started+with+Artifactory+as+a+Docker+Registry#GettingStartedwithArtifactoryasaDockerRegistry-GettingStartedwithArtifactoryProOn-Prem" rel="nofollow noreferrer">artifactory-on-prem</a>.</p>

<p>Please let me know if it helps.</p>
