You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-5Lines changed: 18 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,17 +20,22 @@ for this to work it requires inserting a root CA certificate into system trusted
20
20
- Expose port 3128 to the network
21
21
- Map volume `/docker_mirror_cache` for up to 32gb of cached images from all registries
22
22
- Map volume `/ca`, the proxy will store the CA certificate here across restarts
23
-
- Env `REGISTRIES`: space separated list of registries to cache; no need to include Docker Hub, its already there
24
-
- Env `AUTH_REGISTRIES`: space separated list of `registry:username:password` authentication info. Registry hosts here should be listed in the above ENV as well.
23
+
- Env `REGISTRIES`: space separated list of registries to cache; no need to include Docker Hub, its already there.
24
+
- Env `AUTH_REGISTRIES`: space separated list of `hostname:username:password` authentication info.
25
+
-`hostname`s listed here should be listed in the REGISTRIES environment as well, so they can be intercepted.
26
+
- For Docker Hub authentication, `hostname` should be `auth.docker.io`, username should NOT be an email, use the regular username.
27
+
- For regular registry auth (HTTP Basic), `hostname` here should be the same... unless your registry uses a different auth server. This should work for quay.io also, but I have no way to test.
28
+
- For Google Container Registry (GCR), username should be `_json_key` and the password should be the contents of the service account JSON. Check out [GCR docs](https://cloud.google.com/container-registry/docs/advanced-authentication#json_key_file)
29
+
25
30
26
31
```bash
27
32
docker run --rm --name docker_registry_proxy -it \
0 commit comments