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

Fix autoformat

This commit is contained in:
Darren Shepherd 2015-04-20 16:58:31 -07:00
parent 72992492bc
commit 9116652561

View File

@ -56,15 +56,28 @@ outer:
if format != "" {
log.Infof("Auto formatting : %s", format)
return docker.RunServices("autoformat", cfg, map[string]*project.ServiceConfig{
// copy
udev := *cfg.BootstrapContainers["udev"]
udev.Links = append(udev.Links, "autoformat")
udev.LogDriver = "json-file"
err := docker.RunServices("autoformat", cfg, map[string]*project.ServiceConfig{
"autoformat": {
Net: "none",
Privileged: true,
Image: "autoformat",
Command: format,
Labels: []string{
config.DETACH + "=false",
config.SCOPE + "=" + config.SYSTEM,
},
LogDriver: "json-file",
},
"udev": cfg.BootstrapContainers["udev"],
"udev": &udev,
})
return err
}
return nil