Tested AUTH_REGISTRIES_RAW
parent
f1de86faa0
commit
0bae7cd17d
|
@ -63,6 +63,8 @@ EXPOSE 8082
|
||||||
ENV REGISTRIES="k8s.gcr.io gcr.io quay.io"
|
ENV REGISTRIES="k8s.gcr.io gcr.io quay.io"
|
||||||
# A space delimited list of registry:user:password to inject authentication for
|
# A space delimited list of registry:user:password to inject authentication for
|
||||||
ENV AUTH_REGISTRIES="some.authenticated.registry:oneuser:onepassword another.registry:user:password"
|
ENV AUTH_REGISTRIES="some.authenticated.registry:oneuser:onepassword another.registry:user:password"
|
||||||
|
# Raw nginx auth.map file contents. Some passwords might be too sensitive to be passed via envs unencoded
|
||||||
|
ENV AUTH_REGISTRIES_RAW=""
|
||||||
# Should we verify upstream's certificates? Default to true.
|
# Should we verify upstream's certificates? Default to true.
|
||||||
ENV VERIFY_SSL="true"
|
ENV VERIFY_SSL="true"
|
||||||
# Enable debugging mode; this inserts mitmproxy/mitmweb between the CONNECT proxy and the caching layer
|
# Enable debugging mode; this inserts mitmproxy/mitmweb between the CONNECT proxy and the caching layer
|
||||||
|
|
|
@ -162,7 +162,7 @@ docker run --rm --name docker_registry_proxy -it \
|
||||||
-v $(pwd)/docker_mirror_cache:/docker_mirror_cache \
|
-v $(pwd)/docker_mirror_cache:/docker_mirror_cache \
|
||||||
-v $(pwd)/docker_mirror_certs:/ca \
|
-v $(pwd)/docker_mirror_certs:/ca \
|
||||||
-e REGISTRIES="gitlab.com gitlab.int.company.com" \
|
-e REGISTRIES="gitlab.com gitlab.int.company.com" \
|
||||||
-e AUTH_REGISTRIES_RAW="\"gitlab.com\" \"$(base64 <<<"USER:PASSWORD")\"; \"gitlab.int.company.com\" \"VVNFUjpQQVNTV09SRAo=\"" \
|
-e AUTH_REGISTRIES_RAW="gitlab.com $(base64 <<<"USER:PASSWORD"); gitlab.int.company.com VVNFUjpQQVNTV09SRAo=" \
|
||||||
rpardini/docker-registry-proxy:0.6.2
|
rpardini/docker-registry-proxy:0.6.2
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue