2 Commits
0.1 ... 0.2

Author SHA1 Message Date
4b5cbdc6fb Cleaned up a bit and switched to Debian 10 2020-05-24 14:12:28 +02:00
f84e3707f1 Corrected repo 2020-05-24 10:51:51 +02:00
3 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
FROM alpine:3
RUN apk add openntpd && mkdir -m 1777 /var/empty/tmp
FROM debian:10-slim
RUN apt-get update && apt-get -y install openntpd \
&& mkdir /var/run/openntpd \
&& apt-get clean
COPY ./ntpd.conf /etc/ntpd.conf
EXPOSE 123/udp
ENTRYPOINT ["/usr/sbin/ntpd", "-d", "-f", "/etc/ntpd.conf"]

View File

@@ -15,13 +15,13 @@ equally well wherever you live in Sweden.
To simply use it as a client to synchronize your local computer clock, just
run it and add the capability to change the clock. For example:
docker run -d --name ntp --cap-add SYS_TIME --restart=always swedish-ntp
docker run -d --name ntp --cap-add SYS_TIME --restart=always jackbenny/swedish-ntp
### As a server
You need to publish UDP port 123 to be able to connect to the OpenNTPD daemon.
For example:
docker run -d --name ntp --cap-add SYS_TIME --publish 123:123/udp --restart=always swedish-ntp
docker run -d --name ntp --cap-add SYS_TIME --publish 123:123/udp --restart=always jackbenny/swedish-ntp
# Additional information
For more information about Netnod NTP servers, see [Netnod's NTP

View File

@@ -9,5 +9,3 @@ server sth2.ntp.se weight 1
server svl1.ntp.se weight 1
server svl2.ntp.se weight 1
sensor *
constraints from "https://www.google.se"