Add openntpd container

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>
This commit is contained in:
Justin Cormack
2017-04-10 20:32:59 +01:00
parent 3afe494ae9
commit a3ec9e86df
4 changed files with 70 additions and 0 deletions

View File

@@ -56,6 +56,15 @@ services:
- CAP_NET_RAW
net: host
oomScoreAdj: -800
- name: ntpd
image: "mobylinux/openntpd:a570316d7fc49ca1daa29bd945499f4963d227af"
capabilities:
- CAP_SYS_TIME
- CAP_SYS_NICE
- CAP_SYS_CHROOT
- CAP_SETUID
- CAP_SETGID
net: host
- name: docker
image: "mobylinux/docker-ce:741bf21513328f674e0cdcaa55492b0b75974e08"
capabilities: