1
0
mirror of https://github.com/rancher/os.git synced 2025-09-17 07:30:42 +00:00

Create but do not start udev on system-docker

Eventually this container will be replaced with udev hotplug
This commit is contained in:
Darren Shepherd
2015-03-19 14:58:40 -07:00
parent 130caa1abd
commit e34c3a5e2d
2 changed files with 20 additions and 6 deletions

View File

@@ -119,8 +119,14 @@ func runContainersFrom(startFrom string, cfg *config.Config, containerConfigs []
}
if foundStart || startFrom == "" {
log.Infof("Running [%d/%d] %s", i+1, len(containerConfigs), containerConfig.Id)
container.StartAndWait()
if containerConfig.CreateOnly {
log.Infof("Creating [%d/%d] %s", i+1, len(containerConfigs), containerConfig.Id)
container.Create()
} else {
log.Infof("Running [%d/%d] %s", i+1, len(containerConfigs), containerConfig.Id)
container.StartAndWait()
}
if container.Err != nil {
log.Errorf("Failed to run %v: %v", containerConfig.Id, container.Err)