Automatic Restarting

If you want the container and the Syslog Writer to start automatically, if the Docker daemon restarts for some reason (like machine restart), you can use the option --restart=always in the run command, as shown below. Note that the container and the Syslog Writer will not automatically restart if the container was manually stopped.

sudo docker run --name syslog-writer -it --log-driver json-file --log-opt max-size=10m --net=host --restart=always -v `pwd`/data:/home/centrify-syslog-writer/data syslogwriter_image