mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-11-12 20:31:00 +00:00
Added to Docker example as Swarm mode likes time sync. Note uses pool.ntp.org at present, on some providers it should use a different source. Constraints not enabled as they seem to have an issue; possibly trying to set before network is up. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
12 lines
151 B
Docker
12 lines
151 B
Docker
FROM alpine:3.5
|
|
|
|
RUN \
|
|
apk update && apk upgrade -a && \
|
|
apk add --no-cache \
|
|
openntpd \
|
|
&& true
|
|
|
|
COPY . .
|
|
|
|
CMD ["/usr/sbin/ntpd", "-d", "-s"]
|