mirror of
https://github.com/rancher/os.git
synced 2025-07-13 14:44:03 +00:00
add ntp container
This commit is contained in:
parent
9d8110513e
commit
3092f5fcd0
@ -77,6 +77,15 @@ func NewConfig() *Config {
|
|||||||
"console",
|
"console",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Cmd: []string{
|
||||||
|
"--name", "ntp",
|
||||||
|
"-d",
|
||||||
|
"--privileged",
|
||||||
|
"--net", "host",
|
||||||
|
"ntp",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
RescueContainer: ContainerConfig{
|
RescueContainer: ContainerConfig{
|
||||||
Cmd: []string{
|
Cmd: []string{
|
||||||
|
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