mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
avoid saving container state to disk before daemon.Register
Migrate legacy volumes (Daemon.verifyVolumesInfo) before containers are registered on the Daemon, so state on disk is not overwritten and legacy fields lost during registration. Signed-off-by: Fabio Kung <fabio.kung@gmail.com>
This commit is contained in:
@@ -180,7 +180,6 @@ func (daemon *Daemon) verifyVolumesInfo(container *container.Container) error {
|
||||
container.MountPoints[destination] = &m
|
||||
}
|
||||
}
|
||||
return container.CheckpointTo(daemon.containersReplica)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user