https://github.com/publicarray/docker-rsntp
Docker container for rsntp
https://github.com/publicarray/docker-rsntp
docker ntp ntppool rsntp
Last synced: 12 days ago
JSON representation
Docker container for rsntp
- Host: GitHub
- URL: https://github.com/publicarray/docker-rsntp
- Owner: publicarray
- License: mit
- Created: 2018-07-07T05:22:47.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-01-19T00:02:06.000Z (over 6 years ago)
- Last Synced: 2025-08-16T23:46:32.544Z (10 months ago)
- Topics: docker, ntp, ntppool, rsntp
- Language: Shell
- Homepage: https://github.com/mlichvar/rsntp
- Size: 12.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker container for [rsntp](https://github.com/mlichvar/rsntp)
```sh
# Build
docker build -t publicarray/rsntp .
# Run
docker run -it --rm --name rsntp -p123:123/udp publicarray/rsntp
# Or use your own arguments
docker run -it --rm --name rsntp -p123:123/udp publicarray/rsntp -- -h
docker run -it --rm --name rsntp -p123:123/udp publicarray/rsntp -d ntp
# Always restart, run as a daemon and limit logfile size
docker run -d --restart always --name rsntp -p123:123/udp --log-opt max-size=1m --log-opt max-file=3 publicarray/rsntp
```
## Prevent conntrack from filling up
```sh
# get current status:
$ conntrack -C
$ sysctl net.netfilter.nf_conntrack_max
# disable conntrack on NTP port 123
$ iptables -t raw -A PREROUTING -p udp -m udp --dport 123 -j NOTRACK
$ iptables -t raw -A OUTPUT -p udp -m udp --sport 123 -j NOTRACK