【文件属性】:
文件名称:ntpd:网络时间守护程序
文件大小:4KB
文件格式:ZIP
更新时间:2021-02-07 13:36:40
linux docker ntp ntp-server Dockerfile
ntpd
网络时间守护程序
用法
将TZ变量更改为您的时区。
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
此ntp.conf配置用于“ 192.168.1.0/24”网络。 如果您有其他网络,则必须像下面的示例一样提供自己的ntp.conf:
[...]
-v ./ntp.conf:/etc/ntp.conf \
[...
【文件预览】:
ntpd-master
----content()
--------etc()
----Dockerfile(638B)
----CHANGEFILE(15B)
----LICENSE(1KB)
----README.md(734B)
----.gitignore(15B)