mirror of
https://github.com/rancher/os.git
synced 2025-08-11 03:22:49 +00:00
commit
c3476d7b00
@ -68,6 +68,15 @@ func NewConfig() *Config {
|
|||||||
"--pid=host " +
|
"--pid=host " +
|
||||||
"console",
|
"console",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Cmd: []string{
|
||||||
|
"--name", "ntp",
|
||||||
|
"-d",
|
||||||
|
"--privileged",
|
||||||
|
"--net", "host",
|
||||||
|
"ntp",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
RescueContainer: &ContainerConfig{
|
RescueContainer: &ContainerConfig{
|
||||||
Cmd: "--name=rescue " +
|
Cmd: "--name=rescue " +
|
||||||
|
3
scripts/dockerimages/07-ntp
Normal file
3
scripts/dockerimages/07-ntp
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
FROM console
|
||||||
|
COPY scripts/dockerimages/scripts/ntp.sh /
|
||||||
|
CMD ["/ntp.sh"]
|
3
scripts/dockerimages/scripts/ntp.sh
Executable file
3
scripts/dockerimages/scripts/ntp.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ntpd -d
|
Loading…
Reference in New Issue
Block a user