Sign inSign up

qindel/ntp-syslog

By qindel

•Updated about 10 years ago

Docker container with ntp and syslog forwarding Based on Ubuntu with around 215MB

Artifact
0

962

qindel/ntp-syslog repository overview

Docker container with ntp and syslog forwarding Based on Ubuntu with around 215MB

NOTE: Example assumes you have a "/ntp" with your container specific data! Change as needed with the SRC data that you are mounting into the container. Example named data is defined in the example subdir.

⁠Required "DATA" directory:

This container assumes you have a "/ntp" folder with your container specific data: You can change that folder as needed, but make sure you update the "-v" mounts for run time

1.) [ REQUIRED ] In your /ntp/etc/ntp.conf, which acts as an entry point to your config

2.) [ OPTIONAL ] set environment variable "UDPLOGHOST" or "TCPLOGHOST", if defined rsyslog will be started with remote SYSLOG logging to these hosts. If you use remote syslog, then it might be useful to set the hostname of the container depending on your server syslog configuration (the logs on the syslog server might get stored based on the hostname of the client)

⁠Run ntp

docker run --name=ntpserver --hostname=ntpserver --rm -p 67:67/udp -e UDPLOGHOST=192.168.0.17 --cap-add SYS_TIME --cap-add SYS_NICE -v /ntp/etc/ntp.conf:/etc/ntp.conf qindel/ntp-syslog

Tag summary

Content type

Unrecognized

Digest

Size

89.1 MB

Last updated

about 10 years ago

docker pull qindel/ntp-syslog