run chrony rootless and distroless.
6.3K

run chrony rootless and distroless.
chrony is a versatile implementation of the Network Time Protocol (NTP). It can synchronise the system clock with NTP servers, reference clocks e.g. GPS receiver), and manual input using wristwatch and keyboard.
What can I do with this? Run chrony as an NTP server for your network, pure and simple, maximized for performance and security. If you plan to run this in production, make sure you stand up multiple NTP instances and put them behind a load balancer and use virtual IPs. Pair this image with a GPS USB antenna and you can run your own Stratum 1 NTP for your entire network.
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 |
|---|---|---|---|---|
| 11notes/chrony | 2MB | 1000:1000 | β | amd64, arm64, armv7 |
| dockurr/chrony | 15MB | 0:0 | β | amd64, arm64, armv7 |
pool ch.pool.ntp.org iburst maxsources 5
pool ntp.ubuntu.com iburst maxsources 5
maxupdateskew 10.0
makestep 1 -1
clientloglimit 268435456
driftfile /run/chrony/drift
allow all
name: "chrony"
services:
app:
image: "11notes/chrony:4.8"
read_only: true
environment:
TZ: "Europe/Zurich"
volumes:
- "etc:/chrony/etc"
ports:
- "123:123/udp"
tmpfs:
# tmpfs volume because of read_only: true
- "/run/chrony:mode=0770,uid=1000,gid=1000"
sysctls:
# allow rootless container to access ports < 1024
net.ipv4.ip_unprivileged_port_start: 123
restart: "always"
volumes:
etc:
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 | /chrony | 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 :4.8 you can use :4. 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/chrony:4.8
docker pull ghcr.io/11notes/chrony:4.8
docker pull quay.io/11notes/chrony:4.8
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 03.02.2026, 07:35:41 (CET)
Content type
Image
Digest
sha256:257e5768eβ¦
Size
1.4 MB
Last updated
6 months ago
docker pull 11notes/chrony:4.8-nobody