mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
container: add a span to CheckpointTo
Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
@@ -93,7 +93,7 @@ func (daemon *Daemon) containerStart(ctx context.Context, daemonCfg *configStore
|
||||
if container.ExitCode() == 0 {
|
||||
container.SetExitCode(exitUnknown)
|
||||
}
|
||||
if err := container.CheckpointTo(daemon.containersReplica); err != nil {
|
||||
if err := container.CheckpointTo(context.WithoutCancel(ctx), daemon.containersReplica); err != nil {
|
||||
log.G(ctx).Errorf("%s: failed saving state on start failure: %v", container.ID, err)
|
||||
}
|
||||
container.Reset(false)
|
||||
@@ -211,7 +211,7 @@ func (daemon *Daemon) containerStart(ctx context.Context, daemonCfg *configStore
|
||||
|
||||
daemon.initHealthMonitor(container)
|
||||
|
||||
if err := container.CheckpointTo(daemon.containersReplica); err != nil {
|
||||
if err := container.CheckpointTo(context.WithoutCancel(ctx), daemon.containersReplica); err != nil {
|
||||
log.G(ctx).WithError(err).WithField("container", container.ID).
|
||||
Errorf("failed to store container")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user