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:
Fabio Kung
2017-04-10 09:54:29 -07:00
parent 66b231d598
commit 76d96418b1
4 changed files with 9 additions and 16 deletions

View File

@@ -180,7 +180,6 @@ func (daemon *Daemon) verifyVolumesInfo(container *container.Container) error {
container.MountPoints[destination] = &m
}
}
return container.CheckpointTo(daemon.containersReplica)
}
return nil
}