pull image from remote registry - docker
<p>I have installed docker 1.11.2, I am trying to make one private registry for our office.</p>

<p>I followed this <a href="https://docs.docker.com/registry/deploying/" rel="noreferrer">link</a> to make private registry, I have successfully pull from localhost but I stuck trying to pull from remote machine.</p>

<p><strong>Short Description of what I have done</strong></p>

<p><strong>Step1 :</strong> </p>

<pre><code>docker run -d -p 5000:5000 --restart=always --name registry registry:2
</code></pre>

<p><strong>step2:</strong> </p>

<pre><code>[root@raj raj]# docker images
REPOSITORY          TAG                 IMAGE ID                   CREATED             SIZE
hello-world         latest              c54a2cc56cbb        11 days ago         1.848 kB
registry            2                   8ff6a4aae657        4 weeks ago         171.5 MB
</code></pre>

<p><strong>step3:</strong> (for localhost)</p>

<pre><code>[root@raj raj]# docker tag hello-world localhost:5000/hello-world

[root@raj raj]# docker push localhost:5000/hello-world
The push refers to a repository [localhost:5000/hello-world]
a02596fdd012: Pushed 
latest: digest: sha256:a18ed77532f6d6781500db650194e0f9396ba5f05f8b50d4046b294ae5f83aa4 size: 524
</code></pre>

<p><strong>step4:</strong></p>

<pre><code>[root@raj raj]# docker pull localhost:5000/hello-world
Using default tag: latest
latest: Pulling from hello-world

Digest: sha256:a18ed77532f6d6781500db650194e0f9396ba5f05f8b50d4046b294ae5f83aa4
Status: Image is up to date for localhost:5000/hello-world:latest
</code></pre>

<p>It  is working fine</p>

<p>I am trying to pull the image from <strong>private registry from remote machine</strong> so I have altered the <strong>step 3</strong> like below</p>

<p><strong>step3:</strong> </p>

<pre><code>[root@raj raj]# docker tag hello-world 192.168.1.23:5000/hello-world

[root@raj raj]# docker push 192.168.1.23:5000/hello-world
The push refers to a repository [192.168.1.23:5000/hello-world]
Get https://192.168.1.23:5000/v1/_ping: tls: oversized record received with length 20527
</code></pre>

<p>but it throws error tls:oversized</p>

<p>I have some links related to this issue <a href="https://docs.docker.com/registry/insecure/" rel="noreferrer">link1</a>, <a href="https://stackoverflow.com/questions/26026931/setting-up-a-remote-private-docker-registry/26800070#26800070">link2</a> but it does not resolve my problem</p>

<p>I have some doubt about this link</p>

<p>1) I could not found any docker file in that location /etc/sysconfig/docker, /etc/default/docker for changing –insecure-registry</p>

<p>2) docker -d --insecure-registry 10.11.12.0:5000 (this command is not working it throws below error.</p>

<pre><code>[root@raj raj]# docker -d --insecure-registry 192.168.1.23:5000
flag provided but not defined: -d
See 'docker –help'.
</code></pre>

<p>Please help to get pull request from remote machine to private registry.</p>