1
0
mirror of https://github.com/rancher/os.git synced 2025-08-02 07:24:28 +00:00

Merge pull request #7 from sidharthamani/ntp

add ntp container
This commit is contained in:
Darren 2015-02-17 15:49:12 -07:00
commit c3476d7b00
3 changed files with 15 additions and 0 deletions

View File

@ -68,6 +68,15 @@ func NewConfig() *Config {
"--pid=host " +
"console",
},
{
Cmd: []string{
"--name", "ntp",
"-d",
"--privileged",
"--net", "host",
"ntp",
},
},
},
RescueContainer: &ContainerConfig{
Cmd: "--name=rescue " +

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