Run your own Docker registry proxy
1.5K

Run your own Docker registry proxy
What can I do with this? With this image all your offline docker nodes can still request and pull all images available at hub.docker.com. Simply put this image behind your favourite reverse HTTPS proxy and point all nodes via /etc/docker/daemon.json >> "registry-mirrors": ["https://docker.domain.com"] to this proxy. Your offline docker nodes can now successfully pull all public images available. Registry mirrors can be daisy chained, so that the first mirror will pull and hold all public images, and the next mirror would be a private one.
name: "registry-proxy"
services:
registry-proxy:
image: "11notes/registry-proxy:2.8.3"
container_name: "registry-proxy"
environment:
TZ: Europe/Zurich
REGISTRY_PROXY_CONFIG: |-
version: 0.1
log:
accesslog:
disabled: false
level: warn
formatter: json
fields:
service: registry
storage:
cache:
blobdescriptor: inmemory
blobdescriptorsize: 0
filesystem:
rootdirectory: /registry-proxy/var
maintenance:
uploadpurging:
enabled: true
age: 168h
interval: 24h
dryrun: false
http:
addr: 0.0.0.0:5000
net: tcp
tls:
certificate: /registry-proxy/ssl/default.crt
key: /registry-proxy/ssl/default.key
headers:
X-Content-Type-Options: [nosniff]
health:
storagedriver:
enabled: true
interval: 10s
threshold: 3
proxy:
remoteurl: https://registry-1.docker.io
ttl: 168h
ports:
- "5000:5000/tcp"
volumes:
- "var:/registry-proxy/var"
restart: always
volumes:
var:
| Parameter | Value | Description |
|---|---|---|
user | docker | user docker |
uid | 1000 | user id 1000 |
gid | 1000 | group id 1000 |
home | /registry-proxy | home directory of user docker |
| Parameter | Value | Default |
|---|---|---|
TZ | Time Zone | |
DEBUG | Show debug information |
This image is provided to you at your own risk. Always make backups before updating an image to a different version. Check the RELEASE.md for breaking changes. You can find all my repositories on github.
Content type
Image
Digest
sha256:67a260c96…
Size
14.7 MB
Last updated
almost 2 years ago
docker pull 11notes/registry-proxy:2.8.3