Someone asked on IRC about running ntpd in a container on Atomic,
so I’ve put together a small example. We’ll start with a very simple
Dockerfile:
FROM alpine
RUN apk update
RUN apk add openntpd
ENTRYPOINT ["ntpd"]
I’m using the alpine image as my starting point because it’s very
small, which makes this whole process go a little faster. I’m
installing the openntpd package, which provides the ntpd binary.
By setting an ENTRYPOINT here, the ntpd binary will be started by
default, and any arguments passed to docker run after the image name
will be passed to ntpd.