mirror of
https://github.com/rancher/os.git
synced 2025-08-27 10:48:41 +00:00
add syslog container
This commit is contained in:
parent
81e15fc46f
commit
ecbc0b9a05
@ -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 " +
|
||||||
|
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