1
0
mirror of https://github.com/rancher/os.git synced 2025-08-27 02:39:18 +00:00

add syslog container

This commit is contained in:
sidharthamani 2015-02-19 12:59:13 -08:00
parent 81e15fc46f
commit ecbc0b9a05
3 changed files with 15 additions and 0 deletions

View File

@ -105,6 +105,13 @@ func NewConfig() *Config {
"--pid=host " + "--pid=host " +
"console", "console",
}, },
{
Cmd: "--name=syslog " +
"-d " +
"--privileged " +
"--net=host " +
"syslog",
},
}, },
RescueContainer: &ContainerConfig{ RescueContainer: &ContainerConfig{
Cmd: "--name=rescue " + Cmd: "--name=rescue " +

View File

@ -0,0 +1,3 @@
FROM console
COPY scripts/dockerimages/scripts/syslog.sh /
CMD ["/syslog.sh"]

View File

@ -0,0 +1,5 @@
#!bin/bash
set -x -e
exec syslogd -n