mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Lock concurrent access to remove map during Daemon restore
Signed-off-by: Darren Stahl <darst@microsoft.com>
This commit is contained in:
parent
054f681eb8
commit
d665ca8dc0
1 changed files with 2 additions and 0 deletions
|
@ -201,7 +201,9 @@ func (daemon *Daemon) restore() error {
|
|||
restartContainers[c] = make(chan struct{})
|
||||
mapLock.Unlock()
|
||||
} else if c.HostConfig != nil && c.HostConfig.AutoRemove {
|
||||
mapLock.Lock()
|
||||
removeContainers[c.ID] = c
|
||||
mapLock.Unlock()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue