Skip to content

Instantly share code, notes, and snippets.

@yoanisgil
Created July 29, 2015 23:24
Show Gist options
  • Save yoanisgil/1a854a534449cd295fd1 to your computer and use it in GitHub Desktop.
Save yoanisgil/1a854a534449cd295fd1 to your computer and use it in GitHub Desktop.
----Daemon.sh
#!/bin/bash
while : ; do sleep 1 ; echo test ; done
---Docker run
docker run --name testlog -v $(pwd)/daemon.sh:/daemon.sh -ti -d --log-driver=syslog --log-opt address=tcp://aws034:1514 ubuntu ./daemon.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment