Compare commits
No commits in common. "master" and "0.1" have entirely different histories.
@ -1,7 +1,5 @@
|
|||||||
FROM debian:10-slim
|
FROM alpine:3
|
||||||
RUN apt-get update && apt-get -y install openntpd \
|
RUN apk add openntpd && mkdir -m 1777 /var/empty/tmp
|
||||||
&& mkdir /var/run/openntpd \
|
|
||||||
&& apt-get clean
|
|
||||||
COPY ./ntpd.conf /etc/ntpd.conf
|
COPY ./ntpd.conf /etc/ntpd.conf
|
||||||
EXPOSE 123/udp
|
EXPOSE 123/udp
|
||||||
ENTRYPOINT ["/usr/sbin/ntpd", "-d", "-f", "/etc/ntpd.conf"]
|
ENTRYPOINT ["/usr/sbin/ntpd", "-d", "-f", "/etc/ntpd.conf"]
|
||||||
|
@ -13,15 +13,15 @@ equally well wherever you live in Sweden.
|
|||||||
|
|
||||||
### As a client
|
### As a client
|
||||||
To simply use it as a client to synchronize your local computer clock, just
|
To simply use it as a client to synchronize your local computer clock, just
|
||||||
run it and add the capability to change the clock and set the nice level. For example:
|
run it and add the capability to change the clock. For example:
|
||||||
|
|
||||||
docker run -d --name ntp --cap-add SYS_TIME --cap-add SYS_NICE --restart=always jackbenny/swedish-ntp
|
docker run -d --name ntp --cap-add SYS_TIME --restart=always swedish-ntp
|
||||||
|
|
||||||
### As a server
|
### As a server
|
||||||
You need to publish UDP port 123 to be able to connect to the OpenNTPD daemon.
|
You need to publish UDP port 123 to be able to connect to the OpenNTPD daemon.
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
docker run -d --name ntp --cap-add SYS_TIME --cap-add SYS_NICE --publish 123:123/udp --restart=always jackbenny/swedish-ntp
|
docker run -d --name ntp --cap-add SYS_TIME --publish 123:123/udp --restart=always swedish-ntp
|
||||||
|
|
||||||
# Additional information
|
# Additional information
|
||||||
For more information about Netnod NTP servers, see [Netnod's NTP
|
For more information about Netnod NTP servers, see [Netnod's NTP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user