|
@@ -201,7 +201,9 @@ func (daemon *Daemon) restore() error {
|
|
restartContainers[c] = make(chan struct{})
|
|
restartContainers[c] = make(chan struct{})
|
|
mapLock.Unlock()
|
|
mapLock.Unlock()
|
|
} else if c.HostConfig != nil && c.HostConfig.AutoRemove {
|
|
} else if c.HostConfig != nil && c.HostConfig.AutoRemove {
|
|
|
|
+ mapLock.Lock()
|
|
removeContainers[c.ID] = c
|
|
removeContainers[c.ID] = c
|
|
|
|
+ mapLock.Unlock()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|