Merge pull request #24676 from coolljt0725/fix_24674
Fix daemon panic use wrong graphdriver with --live-restore flag Upstream-commit: f553362ae5be45d5e2eaff4b3a9d89fa796052da Component: engine
This commit is contained in:
@ -651,7 +651,7 @@ func (daemon *Daemon) Shutdown() error {
|
||||
daemon.shutdown = true
|
||||
// Keep mounts and networking running on daemon shutdown if
|
||||
// we are to keep containers running and restore them.
|
||||
if daemon.configStore.LiveRestore {
|
||||
if daemon.configStore.LiveRestore && 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 {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user