mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Shutdown plugins after containers.
Fixes #26278 Signed-off-by: Anusha Ragunathan <anusha@docker.com>
This commit is contained in:
parent
94cd7ed72d
commit
ed6e30767e
1 changed files with 3 additions and 2 deletions
|
@ -726,8 +726,6 @@ func (daemon *Daemon) Shutdown() error {
|
|||
// Keep mounts and networking running on daemon shutdown if
|
||||
// we are to keep containers running and restore them.
|
||||
|
||||
pluginShutdown()
|
||||
|
||||
if daemon.configStore.LiveRestoreEnabled && daemon.containers != nil {
|
||||
// check if there are any running containers, if none we should do some cleanup
|
||||
if ls, err := daemon.Containers(&types.ContainerListOptions{}); len(ls) != 0 || err != nil {
|
||||
|
@ -753,6 +751,9 @@ func (daemon *Daemon) Shutdown() error {
|
|||
})
|
||||
}
|
||||
|
||||
// Shutdown plugins after containers. Dont change the order.
|
||||
pluginShutdown()
|
||||
|
||||
// trigger libnetwork Stop only if it's initialized
|
||||
if daemon.netController != nil {
|
||||
daemon.netController.Stop()
|
||||
|
|
Loading…
Reference in a new issue