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