Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| docker_notes:ntp [2025-11-14 Fri wk46 21:27] – [ntp servers] baumkp | docker_notes:ntp [2025-11-14 Fri wk46 22:12] (current) – [chronyc] baumkp | ||
|---|---|---|---|
| Line 48: | Line 48: | ||
| ++++/ | ++++/ | ||
| < | < | ||
| + | |||
| + | =====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 | pool pool.ntp.org iburst | ||