Windows: Fix regresion on first boot

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard 2015-11-14 11:06:19 -08:00
parent ad8a66573c
commit 8da449055f
1 changed files with 5 additions and 1 deletions

View File

@ -124,7 +124,11 @@ func (daemon *Daemon) containerStart(container *Container) (err error) {
mounts = append(mounts, container.ipcMounts()...)
container.command.Mounts = mounts
return daemon.waitForStart(container)
if err := daemon.waitForStart(container); err != nil {
return err
}
container.HasBeenStartedBefore = true
return nil
}
func (daemon *Daemon) waitForStart(container *Container) error {