@@ -130,7 +130,7 @@ docker run --rm --name docker_registry_proxy -it \
130
130
-p 0.0.0.0:3128:3128 -e ENABLE_MANIFEST_CACHE=true \
131
131
-v $( pwd) /docker_mirror_cache:/docker_mirror_cache \
132
132
-v $( pwd) /docker_mirror_certs:/ca \
133
- -e REGISTRIES=" k8s.gcr .io gcr.io quay.io your.own.registry another.public.registry" \
133
+ -e REGISTRIES=" registry.k8s .io gcr.io quay.io your.own.registry another.public.registry" \
134
134
-e AUTH_REGISTRIES=" auth.docker.io:dockerhub_username:dockerhub_password your.own.registry:username:password" \
135
135
rpardini/docker-registry-proxy:0.6.2
136
136
```
@@ -179,7 +179,7 @@ docker run --rm --name docker_registry_proxy -it \
179
179
-p 0.0.0.0:3128:3128 -e ENABLE_MANIFEST_CACHE=true \
180
180
-v $( pwd) /docker_mirror_cache:/docker_mirror_cache \
181
181
-v $( pwd) /docker_mirror_certs:/ca \
182
- -e REGISTRIES=" k8s.gcr .io gcr.io quay.io your.own.registry another.public.registry" \
182
+ -e REGISTRIES=" registry.k8s .io gcr.io quay.io your.own.registry another.public.registry" \
183
183
-e AUTH_REGISTRIES_DELIMITER=" ;;;" \
184
184
-e AUTH_REGISTRY_DELIMITER=" :::" \
185
185
-e AUTH_REGISTRIES=" gcr.io:::_json_key:::$( cat servicekey.json) ;;;auth.docker.io:::dockerhub_username:::dockerhub_password" \
@@ -316,7 +316,7 @@ systemctl restart docker.service
316
316
317
317
Clear ` dockerd ` of everything not currently running: ` docker system prune -a -f ` * beware*
318
318
319
- Then do, for example, ` docker pull k8s.gcr .io/kube-proxy-amd64:v1.10.4 ` and watch the logs on the caching proxy, it should list a lot of MISSes.
319
+ Then do, for example, ` docker pull registry.k8s .io/kube-proxy-amd64:v1.10.4 ` and watch the logs on the caching proxy, it should list a lot of MISSes.
320
320
321
321
Then, clean again, and pull again. You should see HITs! Success.
322
322
@@ -354,7 +354,7 @@ docker run --rm --name docker_registry_proxy -it
354
354
### Why not use Docker's own registry, which has a mirror feature?
355
355
356
356
Yes, Docker offers [ Registry as a pull through cache] ( https://docs.docker.com/registry/recipes/mirror/ ) , * unfortunately*
357
- it only covers the DockerHub case. It won't cache images from ` quay.io ` , ` k8s.gcr .io` , ` gcr.io ` , or any such, including any private registries.
357
+ it only covers the DockerHub case. It won't cache images from ` quay.io ` , ` registry.k8s .io` , ` gcr.io ` , or any such, including any private registries.
358
358
359
359
That means that your shiny new Kubernetes cluster is now a bandwidth hog, since every image will be pulled from the
360
360
Internet on every Node it runs on, with no reuse.
0 commit comments