@@ -13,7 +13,7 @@ LABEL org.opencontainers.image.source https://github.com/rpardini/docker-registr
13
13
RUN apk add --no-cache --update bash ca-certificates-bundle coreutils openssl
14
14
15
15
# If set to 1, enables building mitmproxy, which helps a lot in debugging, but is super heavy to build.
16
- ARG DEBUG_BUILD="1 "
16
+ ARG DEBUG_BUILD="0 "
17
17
ENV DO_DEBUG_BUILD="$DEBUG_BUILD"
18
18
19
19
# Build mitmproxy via pip. This is heavy, takes minutes do build and creates a 90mb+ layer. Oh well.
@@ -60,9 +60,10 @@ EXPOSE 8082
60
60
61
61
# # Default envs.
62
62
# A space delimited list of registries we should proxy and cache; this is in addition to the central DockerHub.
63
- ENV REGISTRIES="k8s.gcr.io gcr.io quay.io"
63
+ ENV REGISTRIES="docker.caching.proxy.internal registry-1.docker.io auth.docker.io k8s.gcr.io gcr.io quay.io gitlab.com "
64
64
# A space delimited list of registry:user:password to inject authentication for
65
- ENV AUTH_REGISTRIES="some.authenticated.registry:oneuser:onepassword another.registry:user:password"
65
+ # (e.g. AUTH_REGISTRIES="auth.docker.io:dhuser:dhpass gitlab.com:gluser:glpass")
66
+ ENV AUTH_REGISTRIES=""
66
67
# Should we verify upstream's certificates? Default to true.
67
68
ENV VERIFY_SSL="true"
68
69
# Enable debugging mode; this inserts mitmproxy/mitmweb between the CONNECT proxy and the caching layer
@@ -72,6 +73,9 @@ ENV DEBUG_HUB="false"
72
73
# Enable nginx debugging mode; this uses nginx-debug binary and enabled debug logging, which is VERY verbose so separate setting
73
74
ENV DEBUG_NGINX="false"
74
75
76
+ # Set Docker Registry cache size, by default, 32 GB ('32g')
77
+ ENV CACHE_MAX_SIZE="32g"
78
+
75
79
# Manifest caching tiers. Disabled by default, to mimick 0.4/0.5 behaviour.
76
80
# Setting it to true enables the processing of the ENVs below.
77
81
# Once enabled, it is valid for all registries, not only DockerHub.
0 commit comments