mirror of
https://github.com/rancher/os.git
synced 2025-08-12 12:02:22 +00:00
Fix duplicate volumes_from when switching consoles
This commit is contained in:
parent
a81be13f82
commit
42748a2c4b
@ -4,6 +4,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
|
|
||||||
log "github.com/Sirupsen/logrus"
|
log "github.com/Sirupsen/logrus"
|
||||||
|
composeConfig "github.com/docker/libcompose/config"
|
||||||
"github.com/docker/libcompose/project/options"
|
"github.com/docker/libcompose/project/options"
|
||||||
"github.com/rancher/os/compose"
|
"github.com/rancher/os/compose"
|
||||||
"github.com/rancher/os/config"
|
"github.com/rancher/os/config"
|
||||||
@ -24,6 +25,8 @@ func Main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if newConsole != "default" {
|
if newConsole != "default" {
|
||||||
|
project.ServiceConfigs.Add("console", &composeConfig.ServiceConfig{})
|
||||||
|
|
||||||
if err = compose.LoadService(project, cfg, true, newConsole); err != nil {
|
if err = compose.LoadService(project, cfg, true, newConsole); err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user