Created
September 18, 2015 00:42
-
-
Save hyzhak/1c5ee0dada9c338cc4d2 to your computer and use it in GitHub Desktop.
Setup docker for RSyslog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo '###########################################################################' | |
echo '# run syslog docker #' | |
echo '###########################################################################' | |
docker rm -f syslog | |
docker run --detach=true --name syslog helder/rsyslog | |
echo '###########################################################################' | |
echo '# run server docker #' | |
echo '###########################################################################' | |
docker run -i -t \ | |
-p 8000:8000 \ | |
--rm \ | |
--volumes-from syslog \ | |
--name web-server \ | |
agg-web-server | |
logger -p local1.notice "This is a notice!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment