Skip to content

rardcode/chrony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chrony server

Chrony

This container runs chrony⁠ on Alpine Linux⁠.

Quick reference

  • Where to file issues: GitHub

  • Supported architectures: amd64 , armv7 , arm64v8

How to run

With docker run

docker run -di --network host -e ALLOW_CIDR=0.0.0.0/0 rardcode/chrony

With docker-compose file

services:
  app:
    image: rardcode/chrony
    container_name: chrony
    environment:
      - ALLOW_CIDR=0.0.0.0/0 # clients to connect and get the time. Default is none.
      #- NTP_SERVER=time.inrim.it # The NTP server to get the time to set from. Default is pool.ntp.org.
      #- SYNC_RTC=false # Sync the realtime clock on the machine/instance the service is running. Default is true.
    network_mode: host # Recommended so that clients come with the real ip, otherwise they would all get with only ip, that of the docker
    cap_add:
      - SYS_TIME
    restart: unless-stopped

Useful commands:

docker exec chrony /bin/sh -c "chronyc clients"
docker exec chrony /bin/sh -c "chronyc sources"

Tag explanation

Ex. 3213.461r0.1

  • "3213" is the Alpine version. Ex 3.21.3
  • "461r0" is the Chrony version. Ex. 6.4.1-r0
  • "1" if there's, is a minor fix update.

About

Ntp server with chrony, based on Alpine linux.

Resources

License

Stars

Watchers

Forks

Packages

No packages published