<p>I have a local Kubernetes Cluster running under Docker Desktop on Mac. I am running another docker-related process locally on my machine (a local insecure registry). I am interested in getting a process inside the local cluster to push/pull images from the local docker registry.</p>
<p>How can I expose the local registry to be reachable from a pod inside the local Kubernetes cluster?</p>
<p>A way to do this would be to have both the Docker Desktop Cluster and the docker registry use the same docker network. Adding the registry to an existing network is easy.
How does one add the Docker Desktop Cluster to the network?</p>

<p>As I mentioned in comments</p>
<p>I think what you're looking for is mentioned in the documentation <a href="https://docs.docker.com/registry/insecure/" rel="nofollow noreferrer">here</a>. You would have to add your local insecure registry as insecure-registries value in docker for desktop. Then after restart you should be able to use it.</p>
<h2>Deploy a plain HTTP registry</h2>
<blockquote>
<p>This procedure configures Docker to entirely disregard security for your registry. This is very insecure and is not recommended. It exposes your registry to trivial man-in-the-middle (MITM) attacks. Only use this solution for isolated testing or in a tightly controlled, air-gapped environment.</p>
<p>Edit the daemon.json file, whose default location is /etc/docker/daemon.json on Linux or C:\ProgramData\docker\config\daemon.json on Windows Server. If you use Docker Desktop for Mac or Docker Desktop for Windows, click the Docker icon, choose Preferences (Mac) or Settings (Windows), and choose Docker Engine.</p>
<p>If the daemon.json file does not exist, create it. Assuming there are no other settings in the file, it should have the following contents:</p>
</blockquote>
<pre><code>{
  &quot;insecure-registries&quot; : [&quot;myregistrydomain.com:5000&quot;]
}
</code></pre>
<hr />
<p>Also found a tutorial for that on medium with macOS. Take a look <a href="https://medium.com/htc-research-engineering-blog/setup-local-docker-repository-for-local-kubernetes-cluster-354f0730ed3a" rel="nofollow noreferrer">here</a>.</p>
