This container simply starts ntpd and expose 123/udp port
docker run -d ppittavi/ntpd -t ntpd
This statement creates a container named ntpd from the ppittavi/ntpd image and detached (-d) mode.
The default configuration uses the /etc/ntpd.conf file with a standard debian config file . For custom configuration purposes the /etc/ntpd.conf file needs to be replaced by a specific volume mapping. For example the -v <<PATH_TO_MY_NTPD_CONF>>/ntpd.conf:/etc/ntpd.conf flag can be used in the run statement.
Example: running ntpd server mapping 123 udp port with config file located in /docker/ntpd/ntpd.conf
docker run -d --cap-add SYS_RESOURCE --cap-add SYS_TIME --publish 123:123/udp --rm --name ntpd --volume /docker/ntpd/ntp.conf:/etc/ntp.conf ppittavi/ntpd
Content type
Image
Digest
Size
55.9 MB
Last updated
almost 9 years ago
docker pull ppittavi/ntpd