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 21:17] – [Reference] baumkp | docker_notes:ntp [2025-11-14 Fri wk46 22:12] (current) – [chronyc] baumkp | ||
|---|---|---|---|
| Line 36: | Line 36: | ||
| Based upon the duplication of ip address for different domain names and changing ip addresses on same domain names it looks like the ip address are rolled to different servers to balance load. | Based upon the duplication of ip address for different domain names and changing ip addresses on same domain names it looks like the ip address are rolled to different servers to balance load. | ||
| ++++ | ++++ | ||
| + | |||
| + | =====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===== | =====Reference===== | ||
| Line 43: | Line 103: | ||
| *[[https:// | *[[https:// | ||
| *[[https:// | *[[https:// | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| + | *[[https:// | ||
| <- docker_notes: | <- docker_notes: | ||