Sign inSign up

theniwo/ntpd

By theniwo

Updated almost 5 years ago

Network Time Daemon based on ubuntu

Image
0

10K+

theniwo/ntpd repository overview

ntpd

Network Time Daemon

Usage

Change the TZ-Variable to your timezone.

docker run -d \
        --name=ntpd \
        --restart=always \
        --publish=123:123/udp \
        --cap-add=SYS_TIME \
        --memory 64M \
        --cpu-quota "25000" \
        -e TZ=Europe/Berlin \
	-v ntpd_logs:/var/log \
        theniwo/ntpd

This ntp.conf is configured for a "192.168.1.0/24" network. If you have a different network, you have to provide your own ntp.conf like in this example:

	[...]
	-v ./ntp.conf:/etc/ntp.conf \
	[...]

Testing

ntpq -np IP
ntpdate -q IP

CONTACT

[email protected]

LINKS

Docker Hub

Tag summary

Content type

Image

Digest

Size

62.7 MB

Last updated

almost 5 years ago

docker pull theniwo/ntpd