mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #17985 from Microsoft/jjh/firstboot
Windows: [TP4] Fix regression on second or later container starts
This commit is contained in:
commit
92487d7fb4
1 changed files with 5 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue