run registry rootless and distroless
2.4K




run registry rootless and distroless
A registry is a storage and content delivery system, holding named container images and other content, available in different tagged versions.
What can I do with this? This image will run a container registry rootlessโ and distrolessโ , for maximum security and performance. Can by used by default to act as a container image proxy to pull and cache container images for all your on-prem servers. Simply add "registry-mirrors": ["https://registry.domain.com"] to your /etc/docker/daemon.json. For more information about the config.yml consult the documentationโ .
Why should I run this image and not the other image(s) that already exist? Good question! Because ...
If you value security, simplicity and optimizations to the extreme, then this image might be for you.
Below you find a comparison between this image and the most used or original one.
| image | size on disk | init default as | distrolessโ | supported architectures |
|---|---|---|---|---|
| registry | 62MB | 0:0 | โ | amd64, arm64v8, armv6, armv7, ppc64le, riscv64, s390x |
version: 0.1
log:
accesslog:
disabled: false
level: warn
formatter: json
fields:
service: registry
storage:
cache:
blobdescriptor: inmemory
blobdescriptorsize: 0
filesystem:
rootdirectory: /registry/var
maintenance:
uploadpurging:
enabled: true
age: 168h
interval: 24h
dryrun: false
http:
addr: 0.0.0.0:5000
debug:
addr: 0.0.0.0:9100
prometheus:
enabled: true
path: /metrics
net: tcp
headers:
X-Content-Type-Options: [nosniff]
health:
storagedriver:
enabled: true
interval: 10s
threshold: 3
proxy:
remoteurl: https://registry-1.docker.io
ttl: 168h
name: "container"
x-lockdown: &lockdown
# prevents write access to the image itself
read_only: true
# prevents any process within the container to gain more privileges
security_opt:
- "no-new-privileges=true"
services:
registry:
image: "11notes/registry:3.1.1"
<<: *lockdown
environment:
TZ: "Europe/Zurich"
volumes:
- "registry.etc:/registry/etc"
- "registry.var:/registry/var"
ports:
- "3000:5000/tcp"
networks:
frontend:
restart: "always"
volumes:
registry.etc:
registry.var:
networks:
frontend:
To find out how you can change the default UID/GID of this container image, consult the RTFMโ .
| Parameter | Value | Description |
|---|---|---|
user | docker | user name |
uid | 1000 | user identifierโ |
gid | 1000 | group identifierโ |
home | /registry | home directory of user docker |
| Parameter | Value | Default |
|---|---|---|
TZ | Time Zoneโ | |
DEBUG | Will activate debug option for container image and app (if available) |
These are the main tags for the image. There is also a tag for each commit and its shorthand sha256 value.
It is my opinion that the :latest tag is a bad habbit and should not be used at all. Many developers introduce breaking changes in new releases. This would messed up everything for people who use :latest. If you donโt want to change the tag to the latest semverโ , simply use the short versions of semverโ . Instead of using :3.1.1 you can use :3 or :3.1. Since on each new version these tags are updated to the latest version of the software, using them is identical to using :latest but at least fixed to a major or minor version. Which in theory should not introduce breaking changes.
If you still insist on having the bleeding edge release of this app, simply use the :rolling tag, but be warned! You will get the latest version of the app instantly, regardless of breaking changes or security issues or what so ever. You do this at your own risk!
docker pull 11notes/registry:3.1.1
docker pull ghcr.io/11notes/registry:3.1.1
docker pull quay.io/11notes/registry:3.1.1
This image supports unraid by default. Simply add -unraid to any tag and the image will run as 99:100 instead of 1000:1000.
This image supports nobody by default. Simply add -nobody to any tag and the image will run as 65534:65534 instead of 1000:1000.
This image is not based on another image but uses scratchโ as the starting layer. The image consists of the following distroless layers that were added:
This image is provided to you at your own risk. Always make backups before updating an image to a different version. Check the releasesโ for breaking changes. If you have any problems with using this image simply raise an issueโ , thanks. If you have a question or inputs please create a new discussionโ instead of an issue. You can find all my other repositories on githubโ .
created 02.05.2026, 09:01:55 (CET)
Content type
Image
Digest
sha256:dc7d252a2โฆ
Size
12 MB
Last updated
5 months ago
docker pull 11notes/registry:3.1.1-armv7