Chrony

NTP server with pre-configured NTS (NTP-over-TLS).

How to run

# run chronyd
$ docker run \
    --rm \
    --name chrony \
    --publish 127.0.0.1:123:123/udp \
    --cap-add CAP_SYS_TIME \
    registry.staex.io/staex/chrony:latest
# check that everything works
$ docker exec chrony chronyc sources
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
^* time.cloudflare.com           3  10   377   712  -2163us[-2478us] +/- 7815us
$ docker exec chrony chronyc authdata
Name/IP address             Mode KeyID Type KLen Last Atmp  NAK Cook CLen
=========================================================================
time.cloudflare.com          NTS     1   15  256 168m    0    0    8  100

Default configuration

To override the default configuration add --volume /etc/chrony.conf:/etc/chrony.conf:ro to the docker run command.

server nts.netnod.se nts iburst
server time.cloudflare.com nts iburst
makestep 1.0 3
rtcsync
cmdport 0
allow
driftfile /var/lib/chrony/drift