ntp

This container runs chrony on Alpine Linux.

  • Network Services
  • Tools & Utilities
This container runs chrony on Alpine Linux. 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. It can also operate as an NTPv4 (RFC 5905) server and peer to provide a time service to other computers in the network.

Platform availability

Available on 2 of 6 install platforms

  • Unraid
  • TrueNAS
  • Umbrel (not listed)
  • ZimaOS (not listed)
  • Proxmox (not listed)
  • Helm (not listed)

Also on Docker Hub and GitHub

Health score

31/100 Low

Maintained
16last commit 571 days ago
Popular
53443 GitHub stars
Easy to install
351 install platform, install notes, Docker image
Light to run
No data

Based on 3 of 4 factors.

How is this calculated?

A 0-100 score computed nightly from four factors: maintained (40%: recent commits and steady activity), popular (25%: GitHub stars, log scale), easy to install (20%: platforms, install notes, setup guides, Docker image) and light to run (15%: minimum RAM, ARM support). Factors without data are left out and the rest are rescaled.

Availability: platform listings confirmed today, links checked 9 days ago

GitHub stars
443
Open issues
9
Last commit
2025-03-16
License
Apache-2.0
Activity
stale

Checked 2 days ago - source: GitHub (cturra/docker-ntp)

Resources & Compatibility

ARM (e.g. Raspberry Pi) is supported.

Checked 10 days ago - source: Docker Hub image tags and published docs

First-install notes

  • Set your WiFi name and password first Replace the example <SSID> and <PASSWORD> with your real WiFi credentials before flashing the sketch. Without them, the device cannot reach an NTP time server, so the time will not appear. source
  • Use the WiFi header that matches your board Keep the correct include line for your hardware, such as ESP8266WiFi.h for ESP8266 boards or WiFi.h for ESP32 boards. If it is wrong, the code may fail to compile or never connect. source
  • Add a timezone offset if the time is off Set the offset in seconds when creating timeClient if you want local time instead of UTC. Without it, the reported time may look like the wrong timezone. source

Fetched 10 days ago - each note links to its source

Alternatives (1)

  • Time-Sync - Time-Sync is a freeware software to synchronize the time of your system.

Checked 7 days ago - source: AlternativeTo

Common questions

Which port should I expose for NTP clients?

Publish UDP port 123, for example with --publish=123:123/udp.

How do I configure different upstream NTP servers?

Set the NTP_SERVERS environment variable to a comma-delimited list without spaces.

Can I run the container with a more restrictive filesystem?

Yes, run it read-only and mount /etc/chrony, /run/chrony, and /var/lib/chrony as writable tmpfs mounts with mode 1750.

Does the included Compose file have a Docker Engine requirement?

The included file uses Compose format 3.9, which requires Docker Engine 19.03.0 or newer.

Can this container provide time to other devices on my network?

Yes, chrony can operate as an NTPv4 server and peer to provide a time service to other computers in the network.

Answers sourced from github.com

Community

Collected 10 days ago - public community threads