Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| docker_notes:ntp [2025-11-09 Sun wk45 19:47] – [ntp servers] baumkp | docker_notes:ntp [2025-11-14 Fri wk46 22:12] (current) – [chronyc] baumkp | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| ntp servers can be checked using the '' | ntp servers can be checked using the '' | ||
| - | Ranked by testing with '' | ||
| ++++List of local ntp servers| | ++++List of local ntp servers| | ||
| + | Ranked by testing with '' | ||
| ^ sync ^ accuracy ^ server ^ ip address ^ stratum ^ leap status ^ | ^ sync ^ accuracy ^ server ^ ip address ^ stratum ^ leap status ^ | ||
| | +0.018040 | +/- 0.026068 | nets.org.sg | 129.126.239.115 | s1 | no-leap | | | +0.018040 | +/- 0.026068 | nets.org.sg | 129.126.239.115 | s1 | no-leap | | ||
| Line 37: | Line 37: | ||
| ++++ | ++++ | ||
| + | =====chronyc===== | ||
| + | chronyc can be used to query chronyd. | ||
| + | *'' | ||
| + | *'' | ||
| + | *'' | ||
| + | *'' | ||
| + | *'' | ||
| + | *'' | ||
| + | |||
| + | ++++/ | ||
| + | < | ||
| + | |||
| + | =====docker chrony===== | ||
| + | ++++Dockerfile| | ||
| + | < | ||
| + | |||
| + | RUN apk update && \ | ||
| + | apk --no-cache add \ | ||
| + | chrony | ||
| + | |||
| + | EXPOSE 123/udp | ||
| + | |||
| + | |||
| + | #ENTRYPOINT [ "/ | ||
| + | ENTRYPOINT [ "/ | ||
| + | #ENTRYPOINT [ "/ | ||
| + | </ | ||
| + | ++++ | ||
| + | |||
| + | ++++docker-compose.yml| | ||
| + | < | ||
| + | services: | ||
| + | chrony: | ||
| + | build: ./ | ||
| + | image: chrony: | ||
| + | tty: true | ||
| + | stdin_open: true | ||
| + | container_name: | ||
| + | restart: ' | ||
| + | |||
| + | # volumes: | ||
| + | # - '/ | ||
| + | # - '/ | ||
| + | # network_mode: | ||
| + | |||
| + | cap_add: | ||
| + | - SYS_TIME | ||
| + | |||
| + | # command: /bin/sh | ||
| + | </ | ||
| + | ++++ | ||
| + | |||
| + | *'' | ||
| + | |||
| + | pool pool.ntp.org iburst | ||
| + | initstepslew 10 pool.ntp.org | ||
| + | driftfile / | ||
| + | rtcsync | ||
| + | cmdport 0</ | ||
| + | |||
| + | =====Reference===== | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| <- docker_notes: | <- docker_notes: | ||