1
0
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:
sidharthamani 2015-02-17 14:46:01 -08:00
parent 9d8110513e
commit 3092f5fcd0
3 changed files with 15 additions and 0 deletions

View File

@ -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{

View File

@ -0,0 +1,3 @@
FROM console
COPY scripts/dockerimages/scripts/ntp.sh /
CMD ["/ntp.sh"]

View File

@ -0,0 +1,3 @@
#!/bin/bash
ntpd -d