<p>I know how to run a registry mirror</p>

<pre><code>docker run -p 5000:5000 \
    -e STANDALONE=false \
    -e MIRROR_SOURCE=https://registry-1.docker.io \
    -e MIRROR_SOURCE_INDEX=https://index.docker.io \
    registry
</code></pre>

<p>and how to use it </p>

<pre><code>docker --registry-mirror=http://10.0.0.2:5000 -d
</code></pre>

<p>But how can I use multiple registry mirror.</p>

<p>This is what I need:</p>

<ul>
<li>Docker hub mirror</li>
<li><a href="https://gcr.io" rel="noreferrer">Google container registry</a> mirror for k8s</li>
<li>Private registry</li>
</ul>

<p>So I have to make tow registry mirror and a private registry.I want to <code>docker run registry</code> mirror 1st and 2nd registry, and one more <code>docker run registry</code> hold my private registry. The client will use three of these registry.</p>

<p>I have no clue of how to do this,I think this is a common use case, please help, thanks.</p>

<p>You can use a PullSecret to tell Kubernetes what registry to get your containers from. Please see:</p>

<p><a href="http://releases.k8s.io/release-1.0/docs/user-guide/images.md#specifying-imagepullsecrets-on-a-pod" rel="nofollow">http://releases.k8s.io/release-1.0/docs/user-guide/images.md#specifying-imagepullsecrets-on-a-pod</a></p>
