mirror of
https://github.com/rancher/os.git
synced 2025-08-25 17:59:17 +00:00
add syslog container
This commit is contained in:
parent
81e15fc46f
commit
ecbc0b9a05
@ -105,6 +105,13 @@ func NewConfig() *Config {
|
||||
"--pid=host " +
|
||||
"console",
|
||||
},
|
||||
{
|
||||
Cmd: "--name=syslog " +
|
||||
"-d " +
|
||||
"--privileged " +
|
||||
"--net=host " +
|
||||
"syslog",
|
||||
},
|
||||
},
|
||||
RescueContainer: &ContainerConfig{
|
||||
Cmd: "--name=rescue " +
|
||||
|
3
scripts/dockerimages/09-syslog
Normal file
3
scripts/dockerimages/09-syslog
Normal file
@ -0,0 +1,3 @@
|
||||
FROM console
|
||||
COPY scripts/dockerimages/scripts/syslog.sh /
|
||||
CMD ["/syslog.sh"]
|
5
scripts/dockerimages/scripts/syslog.sh
Executable file
5
scripts/dockerimages/scripts/syslog.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!bin/bash
|
||||
|
||||
set -x -e
|
||||
|
||||
exec syslogd -n
|
Loading…
Reference in New Issue
Block a user